VDB

CVE-2026-89538

CVE-2026-89538 PUBLISHED CVSS 9.8 CRITICAL

SUNRPC: Reject krb5 v2 wrap tokens with oversized ec field

Reported by linux · Published September 11, 2026

In the Linux kernel, the following vulnerability has been resolved: SUNRPC: Reject krb5 v2 wrap tokens with oversized ec field gss_krb5_unwrap_v2() sets buf->len to a logical length, which can be much smaller than head[0].iov_len (the allocated receive-page capacity). It then calls xdr_buf_trim() with a trim length derived from the 16-bit "extra count" (ec) field in the Kerberos v2 token header. The ec field is authenticated by the post-decrypt memcmp() against the encrypted header copy, so a randomly-mutated value is rejected. However, any peer holding a valid GSS context can legitimately encrypt a token whose ec exceeds the plaintext length. Per RFC 4121, such a token is structurally malformed. Although xdr_buf_trim() now clamps the buf->len subtraction to avoid unsigned underflow, the buffer is still left in a semantically invalid state (zero length, inconsistent iov lengths) when ec is oversized. Reject these tokens before calling xdr_buf_trim(), giving callers a well-defined GSS_S_DEFECTIVE_TOKEN error and keeping the xdr_buf internally consistent. The wrapped blob begins at a nonzero offset -- both callers pass len as offset + opaque_len -- so buf->len still counts the offset bytes that precede the blob. Compare the trim length against the remaining wrapped segment, buf->len - offset, rather than the whole buffer; comparing against buf->len alone leaves an offset-wide window in which an oversized ec passes the test and xdr_buf_trim() cuts into the bytes ahead of the blob.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
microvm-kernel6.18Amazon Linux1:6.18.51-120.162.amzn2023
perfAmazon Linux1:6.1.188-233.385.amzn2023
kernel6.18-modules-extraAmazon Linux1:6.18.51-120.162.amzn2023
kernel-livepatch-6.18.51-120.162Amazon Linux1:1.0-0.amzn2023
bpftoolAmazon Linux1:6.1.188-233.385.amzn2023
kernel-modules-extraAmazon Linux1:6.1.188-233.385.amzn2023
python3-perf6.12Amazon Linux1:6.12.110-135.201.amzn2023
kernel6.18-headersAmazon Linux1:6.18.51-120.162.amzn2023
kernel-modules-extra-commonAmazon Linux1:6.1.188-233.385.amzn2023
kernel6.18-develAmazon Linux1:6.18.51-120.162.amzn2023
kernel6.12-modules-extra-commonAmazon Linux1:6.12.110-135.201.amzn2023
kernel-headersAmazon Linux1:6.1.188-233.385.amzn2023

4 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxcf4c024b908353fcc48309374d39e3399d67dfd1, cf4c024b908353fcc48309374d39e3399d67dfd1, cf4c024b908353fcc48309374d39e3399d67dfd1
LinuxLinux3.13, 0, 5.10.270
amazon:2023microvm-kernel6.180
amazon:2023perf0
amazon:2023kernel6.18-modules-extra0
amazon:2023kernel-livepatch-6.18.51-120.1620
amazon:2023bpftool0
amazon:2023kernel-modules-extra0
amazon:2023python3-perf6.120
amazon:2023kernel6.18-headers0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel6.18-devel0
amazon:2023kernel6.12-modules-extra-common0
amazon:2023kernel-headers0
amazon:2023kernel6.12-tools-devel0
amazon:2023kernel0
amazon:2023kernel-tools0
amazon:2023kernel6.18-modules-extra-common0
linuxlinux_kernel3.13, 3.13, 3.13
amazon:2023kernel6.12-headers0

…and 18 more

Timeline

  • Sep 11, 2026 CVE Published
  • Sep 12, 2026 EPSS Score (29 in total, the first dated here)
  • Sep 12, 2026 Coalition ESS Score
  • Oct 19, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-89538
vulnetix vdb fixes CVE-2026-89538

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-89538/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›