NFSD: check truncate permission under inode lock
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · High · High
- Fix status
- Partial Red Hat: 4 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and Red Hat.
Summary
In the Linux kernel, the following vulnerability has been resolved: NFSD: check truncate permission under inode lock nfsd_setattr() checks whether a size update needs NFSD_MAY_TRUNC before it takes inode_lock(). The comparison uses the file size sampled by that unlocked read, but the actual ATTR_SIZE update is applied later under inode_lock() by notify_change(). This leaves a TOCTOU window for append-only files. If a client sends a SETATTR that does not shrink the file at the time of the unlocked sample, a concurrent append can extend the file before nfsd_setattr() takes inode_lock(). notify_change() then applies a real truncation without the NFSD_MAY_TRUNC check that rejects IS_APPEND(inode). The VFS truncate syscall paths perform their own append-only checks before calling notify_change(), so NFSD must make this decision against the locked size it is about to change. Split the write-count acquisition from the truncation permission check. Keep get_write_access() before the locked setattr work, then recheck whether the requested size is below i_size_read(inode) after inode_lock() has been acquired and before notify_change(ATTR_SIZE). This also avoids the plain unlocked inode->i_size load.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Linux | Linux | 3.2.89 to before 3.3; 3.16.44 to before 3.17; 4.4.53 to before 4.5; 4.9.14 to before 4.10; 4.10.2 to before 4.11 | 3.3, 3.17, 4.5, 4.10, 4.11 | Patch available | CNA |
| Linux | Linux | 4.11 and later | 6.1.191, 6.6.160, 6.12.109, 6.18.50, 7.2.4, 7.3 | Patch available | CNA |
- Linux VendorLinux Affected 3.2.89 to before 3.3; 3.16.44 to before 3.17; 4.4.53 to before 4.5; 4.9.14 to before 4.10; 4.10.2 to before 4.11 Fixed in 3.3, 3.17, 4.5, 4.10, 4.11 Patch available CNA
- Linux VendorLinux Affected 4.11 and later Fixed in 6.1.191, 6.6.160, 6.12.109, 6.18.50, 7.2.4, 7.3 Patch available CNA
Remediation
- Fix · CNA Linux (Linux) Fixed in 3.3, 3.17, 4.5, 4.10, 4.11
- Fix · CNA Linux (Linux) Fixed in 6.1.191, 6.6.160, 6.12.109, 6.18.50, 7.2.4, 7.3
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet |
| Red Hat Enterprise Linux 7 | Affected | No fix yet |
| Red Hat Enterprise Linux 8 | Affected | No fix yet |
| Red Hat Enterprise Linux 9 | Affected | No fix yet |
Not affected: 1 product
- Red Hat Enterprise Linux 6
Timeline
- 2026-10-02 Threatist record created from CVE-2026-89713
- 2026-10-03 Alias added: GHSA-v99p-5h33-35p9
- 2026-10-18 CISA SSVC decision points changed
- 2026-10-19 Fix available: Linux/[email protected] · CNA
- 2026-10-21 Fix available: Linux/Linux@52d0c5bdfe232c9974d4b11f97078b9c7814f05d, Linux/[email protected] · CNA
- 2026-10-21 1 new reference · CNA
- 2026-10-30 Affected versions changed · Red Hat
- 2026-10-30 Fix available: Linux/Linux@0669861a2e8e2bdb9c1149417d8ad821996ae4fe, Linux/[email protected] · CNA
- 2026-10-30 1 new reference · CNA
- 2026-10-31 EPSS moved to the 50th–90th percentile
- 2026-11-01 Affected versions changed · Red Hat
- 2026-11-01 CVSS score changed · Red Hat
References
Other 6
- https://git.kernel.org/stable/c/0669861a2e8e2bdb9c1149417d8ad821996ae4fe
- https://git.kernel.org/stable/c/52d0c5bdfe232c9974d4b11f97078b9c7814f05d
- https://git.kernel.org/stable/c/3afa17d93ba8c925f49370c816c6dae5112d8c24
- https://git.kernel.org/stable/c/d8352da196349182e1afd5a93308256cddc0a97d
- https://git.kernel.org/stable/c/44086254479035de42ca3d286ecf25521d4e6325
- https://git.kernel.org/stable/c/b778e0e0a16759f22a70579c3cf8d254a40d4a7f
More Linux vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Incorrect authorization in Ubuntu linux kernel KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-89713 · CVE Program
- CVE-2026-89713 · NVD
- FIRST EPSS
- GHSA-v99p-5h33-35p9 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-89713 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences