CVE-2026-89541

SUNRPC: harden gss_unwrap_resp_priv length checks

9.8 critical EPSS 0.51%

Published 11 Sep 2026 Updated 19 Oct 2026 CNA: Linux

Check your servers for CVE-2026-89541

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-89541 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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").

Severity (CVSS)

9.8 critical CVSS 3.1 from Linux (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
low: an attack works without special conditions
Privileges required
none: the attacker does not need an account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.51%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 45.3% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 16 Oct 2026):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
yes: an attacker can automate the attack across many targets
Technical impact
total: full control of the component or of its data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, before 3691c4b3488d8ca046b9941e5be30c626dbbbb50
affected from 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, before 85fa6b12e8f439739ac36ef2aad925f37c8b976a
affected from 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, before 401f6a5b338d05bb1069ad814d9f77e3c367854f
affected from 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, before 81fd7654a8429718adfcb2a7e03496077f547ed0
affected from 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, before 89a15a50f84d32d4b99db86f957427fcbe20a99a
affected from 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, before ebcbd2523a8524c3d24e111cdbed8e271d910269
affected from 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, before d395c30d570ca6168f0297b191709927d1258273
affected from 2d2da60c63b67174add32f06e8d54c3a0c5cd9cf, before 87831b92112c81db251d46756d65daa4f91af6a2
Other versions: unaffected
Linux
affected 2.6.15
unaffected before 2.6.15
unaffected from 5.10.270 up to and including 5.10.*
unaffected from 5.15.221 up to and including 5.15.*
unaffected from 6.1.188 up to and including 6.1.*
unaffected from 6.6.157 up to and including 6.6.*
unaffected from 6.12.109 up to and including 6.12.*
unaffected from 6.18.50 up to and including 6.18.*
unaffected from 7.2.4 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-89541 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-89541

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-89541
trivy image --scanners vuln IMAGE | grep CVE-2026-89541

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-89541 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.