# CVE-2026-89674: nfsd: fix XDR length calculation in nfsd4\_ff\_encode\_layoutget

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.76% (percentile 51, 2026-11-26)
- **Published:** 2026-09-11T19:45:58.883Z
- **Modified:** 2026-10-19T09:18:05.607Z

## Who should check

- Anyone running Linux \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 3a7fd224df0fbb42167eb1b77be45d72fe0b1098; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 29e4478e2ed5a227e8f0c33cacb91bf227cedd47; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 65a72b721943618eeb3a41c8b36e915591f3f83f; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< bee826c00ac900473f91306f1f3e5a5a81fd4a74; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< e7d9d23ecd9172f05b09bb678ff22db8e361c428; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 0380129b1373c437eb35401a174671c8888f4b80; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< c81cef6a805dec266c10fc4f83c93d6fcf1a2b43; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< f9868174af49d207fbaf0c5e055d088a983684af
- Anyone running Linux 4.8

## Description

In the Linux kernel, the following vulnerability has been resolved:

nfsd: fix XDR length calculation in nfsd4\_ff\_encode\_layoutget

The XDR buffer size calculation in nfsd4\_ff\_encode\_layoutget() has
multiple errors that can result in either an out-of-bounds write or
leaking uninitialized kernel memory to the client:

 - fh\_len doesn't account for XDR padding on the file handle data
 - uid and gid lengths use "8 + len" but xdr\_encode\_opaque() actually
   writes "4 + xdr\_align\_size(len)" bytes
 - ds\_len omits the flags and stats\_collect\_hint fields (8 bytes),
   while len's header constant overestimates by 8 bytes -- these
   partially cancel but leave a net mismatch

The worst case occurs with short strings (e.g. uid=0, gid=0 with an
odd-sized file handle), where the function writes up to 5 bytes past
the reserved XDR buffer. Conversely, when string lengths happen to be
4-byte aligned, the reservation is too large and stale buffer content
is sent to the client.

Fix this by breaking out every encoded field explicitly in the ds\_len
calculation, using xdr\_align\_size() for all variable-length opaque
fields, and correcting the header constants.

## Affected and fixed versions

- Linux: \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 3a7fd224df0fbb42167eb1b77be45d72fe0b1098; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 29e4478e2ed5a227e8f0c33cacb91bf227cedd47; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 65a72b721943618eeb3a41c8b36e915591f3f83f; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< bee826c00ac900473f91306f1f3e5a5a81fd4a74; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< e7d9d23ecd9172f05b09bb678ff22db8e361c428; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 0380129b1373c437eb35401a174671c8888f4b80; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< c81cef6a805dec266c10fc4f83c93d6fcf1a2b43; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< f9868174af49d207fbaf0c5e055d088a983684af (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-89674. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89674.md
Affected: Linux >= 9b9960a0ca4773e21c4b153ed355583946346b25, < 3a7fd224df0fbb42167eb1b77be45d72fe0b1098; >= 9b9960a0ca4773e21c4b153ed355583946346b25, < 29e4478e2ed5a227e8f0c33cacb91bf227cedd47; >= 9b9960a0ca4773e21c4b153ed355583946346b25, < 65a72b721943618eeb3a41c8b36e915591f3f83f; >= 9b9960a0ca4773e21c4b153…
Fixed in: Linux 3a7fd224df0fbb42167eb1b77be45d72fe0b1098, Linux 29e4478e2ed5a227e8f0c33cacb91bf227cedd47, Linux 65a72b721943618eeb3a41c8b36e915591f3f83f, Linux 0380129b1373c437eb35401a174671c8888f4b80

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-89674 being exploited?

There is no confirmed exploitation: CVE-2026-89674 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.76% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-89674?

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-89674?

Linux \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 3a7fd224df0fbb42167eb1b77be45d72fe0b1098; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 29e4478e2ed5a227e8f0c33cacb91bf227cedd47; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 65a72b721943618eeb3a41c8b36e915591f3f83f; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< bee826c00ac900473f91306f1f3e5a5a81fd4a74; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< e7d9d23ecd9172f05b09bb678ff22db8e361c428; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< 0380129b1373c437eb35401a174671c8888f4b80; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< c81cef6a805dec266c10fc4f83c93d6fcf1a2b43; \>= 9b9960a0ca4773e21c4b153ed355583946346b25, \< f9868174af49d207fbaf0c5e055d088a983684af; Linux 4.8.

### Is there a fix for CVE-2026-89674?

Yes. Fixed in Linux 3a7fd224df0fbb42167eb1b77be45d72fe0b1098, Linux 29e4478e2ed5a227e8f0c33cacb91bf227cedd47, Linux 65a72b721943618eeb3a41c8b36e915591f3f83f, Linux 0380129b1373c437eb35401a174671c8888f4b80. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-89674?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/3a7fd224df0fbb42167eb1b77be45d72fe0b1098>
- other: <https://git.kernel.org/stable/c/29e4478e2ed5a227e8f0c33cacb91bf227cedd47>
- other: <https://git.kernel.org/stable/c/65a72b721943618eeb3a41c8b36e915591f3f83f>
- other: <https://git.kernel.org/stable/c/bee826c00ac900473f91306f1f3e5a5a81fd4a74>
- other: <https://git.kernel.org/stable/c/e7d9d23ecd9172f05b09bb678ff22db8e361c428>
- other: <https://git.kernel.org/stable/c/0380129b1373c437eb35401a174671c8888f4b80>
- other: <https://git.kernel.org/stable/c/c81cef6a805dec266c10fc4f83c93d6fcf1a2b43>
- other: <https://git.kernel.org/stable/c/f9868174af49d207fbaf0c5e055d088a983684af>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-89674>

HTML: <https://flawdb.com/CVE-2026-89674> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-89674>
