CVE-2026-31641
rxrpc: Fix RxGK token loading to check bounds
Check your servers for CVE-2026-31641
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-31641 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.
Description
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: Fix RxGK token loading to check bounds
rxrpc_preparse_xdr_yfs_rxgk() reads the raw key length and ticket length from the XDR token as u32 values and passes each through round_up(x, 4) before using the rounded value for validation and allocation. When the raw length is >= 0xfffffffd, round_up() wraps to 0, so the bounds check and kzalloc both use 0 while the subsequent memcpy still copies the original ~4 GiB value, producing a heap buffer overflow reachable from an unprivileged add_key() call.
Fix this by:
(1) Rejecting raw key lengths above AFSTOKEN_GK_KEY_MAX and raw ticket lengths above AFSTOKEN_GK_TOKEN_MAX before rounding, consistent with the caps that the RxKAD path already enforces via AFSTOKEN_RK_TIX_MAX.
(2) Sizing the flexible-array allocation from the validated raw key length via struct_size_t() instead of the rounded value.
(3) Caching the raw lengths so that the later field assignments and memcpy calls do not re-read from the token, eliminating a class of TOCTOU re-parse.
The control path (valid token with lengths within bounds) is unaffected.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user 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)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity low, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.15%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 4.22% of all scored CVEs. Scores of 1 Dec 2026.
Weakness
- CWE-190 Integer Overflow or Wraparound
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, before 3e04596cba8a86cbff9c3f4bf0a524a3a488773c affected from 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, before 49875b360c2b83a3c226e189c502e501d83e6445 affected from 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, before d179a868dd755b0cfcf7582e00943d702b9943b8
Other versions: unaffected
|
| Linux |
affected 6.16 unaffected before 6.16 unaffected from 6.18.23 up to and including 6.18.* unaffected from 6.19.13 up to and including 6.19.* unaffected 7.0 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-31641 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31641
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-31641
trivy image --scanners vuln IMAGE | grep CVE-2026-31641
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
Advisories
- https://access.redhat.com/security/cve/CVE-2026-31641 access.redhat.com · vdb entry
- RHBZ#2461548 bugzilla.redhat.com · issue tracking
- https://access.redhat.com/errata/RHSA-2026:27288 access.redhat.com · vendor advisory
- https://access.redhat.com/errata/RHSA-2026:55618 access.redhat.com · vendor advisory
Other references
- https://git.kernel.org/stable/c/3e04596cba8a86cbff9c3f4bf0a524a3a488773c git.kernel.org
- https://git.kernel.org/stable/c/49875b360c2b83a3c226e189c502e501d83e6445 git.kernel.org
- https://git.kernel.org/stable/c/d179a868dd755b0cfcf7582e00943d702b9943b8 git.kernel.org
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31641.json security.access.redhat.com
Source: the record CVE-2026-31641 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse