# CVE-2026-89695: nfsd: cap decoded POSIX ACL count to bound sort cost

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.49% (percentile 35, 2026-11-26)
- **Published:** 2026-09-11T19:46:14.258Z
- **Modified:** 2026-10-19T09:18:08.037Z

## Who should check

- Anyone running Linux \>= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, \< ea14d71d6ecb925673761bcf79f781f7dc9042cc; \>= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, \< 4bc1108e876153a2dd6d874052b99182c3603135
- Anyone running Linux 7.0

## 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

- Linux: \>= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, \< ea14d71d6ecb925673761bcf79f781f7dc9042cc; \>= 5fc51dfc2eb160bd7ab3251ab1767cacf9c8bf05, \< 4bc1108e876153a2dd6d874052b99182c3603135 (cvelist)
- Linux: 7.0 (cvelist)

## Mitigation

- Upgrade Linux to 4bc1108e876153a2dd6d874052b99182c3603135 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

## 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.

## References

- other: <https://git.kernel.org/stable/c/ea14d71d6ecb925673761bcf79f781f7dc9042cc>
- other: <https://git.kernel.org/stable/c/4bc1108e876153a2dd6d874052b99182c3603135>

## 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-89695>

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