# CVE-2026-89713: NFSD: check truncate permission under inode lock

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.1 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 0669861a2e8e2bdb9c1149417d8ad821996ae4fe, 3.17, 3.3, 3afa17d93ba8c925f49370c816c6dae5112d8c24, 4.10, 4.11, 4.5, 44086254479035de42ca3d286ecf25521d4e6325, 52d0c5bdfe232c9974d4b11f97078b9c7814f05d, b778e0e0a16759f22a70579c3cf8d254a40d4a7f, d8352da196349182e1afd5a93308256cddc0a97d (CNA); fix release not confirmed
- Status: published
- Published: 2026-09-11 · Modified: 2026-10-30
- Aliases: UBUNTU-CVE-2026-89713, DEBIAN-CVE-2026-89713
- Record: https://cvemate.com/vulnerability/CVE-2026-89713 · JSON: https://cvemate.com/vulnerability/CVE-2026-89713/json

## Description

```text
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.
```

## Signals

- CVSS: 9.1 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
- EPSS: 0.712%, percentile 54.938%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 172)

- debian linux (Debian): All versions (No fix recorded) \| \< 6.1.192-1 \| \< 6.12.111-1 \| \< 7.2.6-1
- debian linux-6.12 (Debian): \< 6.12.111-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-149.149 \| \< 7.0.0-42.42
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74 \| \< 7.0.0-1016.17
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74~22.04.1
- ubuntu linux-aws-7.0 (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1017.18~24.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 6.8.0-1069.74+fips1

## References (first 20 of 27)

- <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>
- <https://ubuntu.com/security/CVE-2026-89713>
- <https://www.cve.org/CVERecord?id=CVE-2026-89713>
- <https://git.kernel.org/linus/b778e0e0a16759f22a70579c3cf8d254a40d4a7f>
- <https://security-tracker.debian.org/tracker/CVE-2026-89713>
- <https://git.kernel.org/stable/c/52d0c5bdfe232c9974d4b11f97078b9c7814f05d>
- <https://git.kernel.org/stable/c/0669861a2e8e2bdb9c1149417d8ad821996ae4fe>
- <https://ubuntu.com/security/notices/USN-8959-1>
- <https://ubuntu.com/security/notices/USN-8960-1>
- <https://ubuntu.com/security/notices/USN-9002-1>
- <https://ubuntu.com/security/notices/USN-9020-1>
- <https://ubuntu.com/security/notices/USN-9023-1>
- <https://ubuntu.com/security/notices/USN-9025-1>
- <https://ubuntu.com/security/notices/USN-9022-1>
- <https://ubuntu.com/security/notices/USN-9024-1>
- <https://ubuntu.com/security/notices/USN-9026-1>
- <https://ubuntu.com/security/notices/USN-9019-1>

---

Data as of 2026-12-05T03:57:38.314Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
