Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2026-31641

HIGH 7.8EPSS 5%

rxrpc: Fix RxGK token loading to check bounds

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

  • Anyone running Linux >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 3e04596cba8a86cbff9c3f4bf0a524a3a488773c; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 49875b360c2b83a3c226e189c502e501d83e6445; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < d179a868dd755b0cfcf7582e00943d702b9943b8
  • Anyone running Linux 6.16

Vulnerability facts

Affected
Linux >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 3e04596cba8a86cbff9c3f4bf0a524a3a488773c; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 49875b360c2b83a3c226e189c502e501d83e6445; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < d179a868dd755b0cfcf7582e00943d702b9943b8; Linux 6.16
Fixed in
Linux 3e04596cba8a86cbff9c3f4bf0a524a3a488773c, Linux 49875b360c2b83a3c226e189c502e501d83e6445
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.20% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-125, CWE-190
Published
Modified

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.

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 3e04596cba8a86cbff9c3f4bf0a524a3a488773c; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 49875b360c2b83a3c226e189c502e501d83e6445; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < d179a868dd755b0cfcf7582e00943d702b9943b8—cvelist
Linux6.16—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2026-31641. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-31641.md
Affected: Linux >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 3e04596cba8a86cbff9c3f4bf0a524a3a488773c; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 49875b360c2b83a3c226e189c502e501d83e6445; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < d179a868dd755b0cfcf7582e00943d702b9943b8; Linux 6.16
Fixed in: Linux 3e04596cba8a86cbff9c3f4bf0a524a3a488773c, Linux 49875b360c2b83a3c226e189c502e501d83e6445

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.

References

FAQ

Is CVE-2026-31641 being exploited?

There is no confirmed exploitation: CVE-2026-31641 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2026-31641?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2026-31641?

Linux >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 3e04596cba8a86cbff9c3f4bf0a524a3a488773c; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < 49875b360c2b83a3c226e189c502e501d83e6445; >= 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6, < d179a868dd755b0cfcf7582e00943d702b9943b8; Linux 6.16.

Is there a fix for CVE-2026-31641?

Yes. Fixed in Linux 3e04596cba8a86cbff9c3f4bf0a524a3a488773c, Linux 49875b360c2b83a3c226e189c502e501d83e6445. No fix listed yet: follow the vendor advisory.

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

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.

Sponsors