CVE-2026-89695
nfsd: cap decoded POSIX ACL count to bound sort cost
Mitigation
- Upgrade Linux to 4bc1108e876153a2dd6d874052b99182c3603135 or later.
Who should check
- Anyone running Linux >= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, < ea14d71d6ecb925673761bcf79f781f7dc9042cc; >= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, < 4bc1108e876153a2dd6d874052b99182c3603135
- Anyone running Linux 7.0
Vulnerability facts
- Affected
- Linux >= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, < ea14d71d6ecb925673761bcf79f781f7dc9042cc; >= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, < 4bc1108e876153a2dd6d874052b99182c3603135; Linux 7.0
- Fixed in
- Linux 4bc1108e876153a2dd6d874052b99182c3603135
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 7.5 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.49% chance of exploitation in 30 days (percentile 35, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: nfsd: cap decoded POSIX ACL count to bound sort cost nfsd4_decode_posixacl() reads a u32 entry count off the wire and passes it straight to posix_acl_alloc() and sort_pacl_range(). The latter is an O(n^2) bubble sort, so a client-chosen count drives unbounded CPU in the server's compound processing path. nfsd4_decode_posixacl() xdr_stream_decode_u32(&count) /* uncapped u32 */ posix_acl_alloc(count, GFP_KERNEL) sort_pacl_range(*acl, 0, count - 1) /* O(n^2) bubble sort */ The encoder side in the same file already rejects ACLs whose a_count exceeds NFS_ACL_MAX_ENTRIES, but the decoder introduced in commit 5fc51dfc2eb1 ("NFSD: Add support for XDR decoding POSIX draft ACLs") omitted the symmetric check. Fix by rejecting a wire count greater than NFS_ACL_MAX_ENTRIES with nfserr_inval, before any allocation, so the sort is bounded by NFS_ACL_MAX_ENTRIES^2 comparisons. While we're in here, also fix the nfserr_resource return if posix_acl_alloc() fails. That's not a legal error code for v4.1+. Change it to return nfserr_jukebox as that's more appropriate for memory allocation failures.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-89695. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-89695.md Affected: Linux >= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, < ea14d71d6ecb925673761bcf79f781f7dc9042cc; >= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, < 4bc1108e876153a2dd6d874052b99182c3603135; Linux 7.0 Fixed in: Linux 4bc1108e876153a2dd6d874052b99182c3603135 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.
References
FAQ
Is CVE-2026-89695 being exploited?
There is no confirmed exploitation: CVE-2026-89695 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-89695?
High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2026-89695?
Linux >= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, < ea14d71d6ecb925673761bcf79f781f7dc9042cc; >= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, < 4bc1108e876153a2dd6d874052b99182c3603135; Linux 7.0.
Is there a fix for CVE-2026-89695?
Yes. Fixed in Linux 4bc1108e876153a2dd6d874052b99182c3603135. Upgrade Linux to 4bc1108e876153a2dd6d874052b99182c3603135 or later.
How do I check if I'm affected by CVE-2026-89695?
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.