# CVE-2026-89541: SUNRPC: harden gss\_unwrap\_resp\_priv length checks

> 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:44:18.188Z
- **Modified:** 2026-10-19T09:17:48.983Z

## Who should check

- Anyone running Linux \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 3691c4b3488d8ca046b9941e5be30c626dbbbb50; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 85fa6b12e8f439739ac36ef2aad925f37c8b976a; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 401f6a5b338d05bb1069ad814d9f77e3c367854f; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 81fd7654a8429718adfcb2a7e03496077f547ed0; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 89a15a50f84d32d4b99db86f957427fcbe20a99a; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< ebcbd2523a8524c3d24e111cdbed8e271d910269; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< d395c30d570ca6168f0297b191709927d1258273; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 87831b92112c81db251d46756d65daa4f91af6a2
- Anyone running Linux 2.6.15

## Description

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

SUNRPC: harden gss\_unwrap\_resp\_priv length checks

gss\_unwrap\_resp\_priv() validates the RPCSEC\_GSS opaque length with

    offset = (u8 \*)(p) - (u8 \*)head-\>iov\_base;
    if (offset + opaque\_len \> rcv\_buf-\>len)
            goto unwrap\_failed;
    maj\_stat = gss\_unwrap(ctx-\>gc\_gss\_ctx, offset,
                          offset + opaque\_len, rcv\_buf);

Both operands are u32 and the sum is computed in u32. A reply with
opaque\_len near 0xffffffff makes offset + opaque\_len wrap to a small
value that is below rcv\_buf-\>len, so the bound check passes and
gss\_unwrap() is called with end \< begin. The check also lacks a
lower bound, so any opaque\_len in \[0, GSS\_KRB5\_TOK\_HDR\_LEN) is
accepted and forwarded to gss\_krb5\_unwrap\_v2(), whose pre-decrypt
header reads at ptr+4 and ptr+6 then run past the token.

A krb5p NFS server returning a crafted RPCSEC\_GSS reply can drive
the client into out-of-bounds reads in gss\_krb5\_unwrap\_v2() and the
rotate\_left() loop that follows.

Fix by replacing the single combined check with three guards that
are safe in u32 arithmetic and that enforce the RFC 4121 minimum
outer token length:

    if (offset \> rcv\_buf-\>len)
            goto unwrap\_failed;
    if (opaque\_len \> rcv\_buf-\>len - offset)
            goto unwrap\_failed;
    if (opaque\_len \< GSS\_KRB5\_TOK\_HDR\_LEN)
            goto unwrap\_failed;

The first guard makes the subtraction in the second guard
unconditionally safe; offset is derived from a successful
xdr\_inline\_decode() in the head kvec, so in practice it already
satisfies the bound. The floor mirrors the server-side check added
in commit 5b757c2e57a5 ("SUNRPC: svcauth\_gss: enforce krb5 token
minimum length").

## Affected and fixed versions

- Linux: \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 3691c4b3488d8ca046b9941e5be30c626dbbbb50; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 85fa6b12e8f439739ac36ef2aad925f37c8b976a; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 401f6a5b338d05bb1069ad814d9f77e3c367854f; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 81fd7654a8429718adfcb2a7e03496077f547ed0; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 89a15a50f84d32d4b99db86f957427fcbe20a99a; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< ebcbd2523a8524c3d24e111cdbed8e271d910269; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< d395c30d570ca6168f0297b191709927d1258273; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 87831b92112c81db251d46756d65daa4f91af6a2 (cvelist)
- Linux: 2.6.15 (cvelist)

## Mitigation

- Upgrade Linux to 87831b92112c81db251d46756d65daa4f91af6a2 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-89541. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-89541.md
Affected: Linux >= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, < 3691c4b3488d8ca046b9941e5be30c626dbbbb50; >= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, < 85fa6b12e8f439739ac36ef2aad925f37c8b976a; >= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, < 401f6a5b338d05bb1069ad814d9f77e3c367854f; >= 2d2da60c63b67174add32f0…
Fixed in: Linux 3691c4b3488d8ca046b9941e5be30c626dbbbb50, Linux 85fa6b12e8f439739ac36ef2aad925f37c8b976a, Linux 401f6a5b338d05bb1069ad814d9f77e3c367854f, Linux 81fd7654a8429718adfcb2a7e03496077f547ed0, Linux 89a15a50f84d32d4b99db86f957427fcbe20a99a, Linux 87831b92112c81db251d46756d65daa4f91af6a2

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-89541 being exploited?

There is no confirmed exploitation: CVE-2026-89541 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-89541?

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

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

Linux \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 3691c4b3488d8ca046b9941e5be30c626dbbbb50; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 85fa6b12e8f439739ac36ef2aad925f37c8b976a; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 401f6a5b338d05bb1069ad814d9f77e3c367854f; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 81fd7654a8429718adfcb2a7e03496077f547ed0; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 89a15a50f84d32d4b99db86f957427fcbe20a99a; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< ebcbd2523a8524c3d24e111cdbed8e271d910269; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< d395c30d570ca6168f0297b191709927d1258273; \>= 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, \< 87831b92112c81db251d46756d65daa4f91af6a2; Linux 2.6.15.

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

Yes. Fixed in Linux 3691c4b3488d8ca046b9941e5be30c626dbbbb50, Linux 85fa6b12e8f439739ac36ef2aad925f37c8b976a, Linux 401f6a5b338d05bb1069ad814d9f77e3c367854f, Linux 81fd7654a8429718adfcb2a7e03496077f547ed0, Linux 89a15a50f84d32d4b99db86f957427fcbe20a99a, Linux 87831b92112c81db251d46756d65daa4f91af6a2. Upgrade Linux to 87831b92112c81db251d46756d65daa4f91af6a2 or later.

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

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/3691c4b3488d8ca046b9941e5be30c626dbbbb50>
- other: <https://git.kernel.org/stable/c/85fa6b12e8f439739ac36ef2aad925f37c8b976a>
- other: <https://git.kernel.org/stable/c/401f6a5b338d05bb1069ad814d9f77e3c367854f>
- other: <https://git.kernel.org/stable/c/81fd7654a8429718adfcb2a7e03496077f547ed0>
- other: <https://git.kernel.org/stable/c/89a15a50f84d32d4b99db86f957427fcbe20a99a>
- other: <https://git.kernel.org/stable/c/ebcbd2523a8524c3d24e111cdbed8e271d910269>
- other: <https://git.kernel.org/stable/c/d395c30d570ca6168f0297b191709927d1258273>
- other: <https://git.kernel.org/stable/c/87831b92112c81db251d46756d65daa4f91af6a2>

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

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