Skip to main content

Linux Kernel CVE-2026-31641

| EUVDEUVD-2026-25534 HIGH
Out-of-bounds Read (CWE-125)
2026-04-24 Linux GHSA-p4pm-x7ch-5mvc
7.8
CVSS 3.1 · Vendor: Linux
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local shell access
  2. Delivery
    Craft XDR token with length=0xfffffffd
  3. Exploit
    Call add_key() syscall
  4. Install
    Trigger integer wraparound in round_up()
  5. C2
    Overflow zero-byte heap buffer with 4GB payload
  6. Execute
    Corrupt kernel heap structures
  7. Impact
    Escalate to root privileges

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the Linux kernel compiled with CONFIG_AFS_FS and CONFIG_AF_RXRPC_RXGK enabled, which activates the vulnerable rxrpc_preparse_xdr_yfs_rxgk() function in the RxGK token parsing path. The attacker must have local authenticated access (PR:L) with permission to invoke the add_key() syscall, which is available to unprivileged users by default on most Linux distributions unless restricted via user namespaces or seccomp policies. The target system must be using AFS with RxGK authentication tokens rather than legacy RxKAD tokens. Exploitation is limited to kernels between commit 0ca100ff4df6 (which introduced RxGK support) and the patched versions (6.18.23, 6.19.13, 7.0), excluding earlier kernels without RxGK code. Attack complexity is low (AC:L) as it requires only standard syscall invocation with crafted token data. Factors limiting exploitation: systems not using AFS are unaffected regardless of kernel version; distributions that disable CONFIG_AF_RXRPC_RXGK by default (most non-AFS-focused distros) are not vulnerable; containers with restricted syscall filters blocking add_key() prevent the attack vector.

Impact

CVSS vector AV:L/AC:L/PR:L/UI:N indicates local exploitation requiring low-privileged authentication with low complexity and no user interaction, scoring 7.8 (High severity) with complete confidentiality, integrity, and availability impact. However, real-world risk appears limited based on multiple signals: EPSS probability of 0.02% places this in the 4th percentile, suggesting minimal observed exploitation activity; no CISA KEV listing confirms absence of known active exploitation; the local attack vector (AV:L) and requirement for authenticated user context (PR:L) significantly narrows the attack surface compared to remote vulnerabilities. The unprivileged add_key() attack path is concerning for container escape or privilege escalation scenarios where attackers have local shell access but lack root. Exploitation requires specific RxGK token parsing code paths, which are only active on systems using AFS with RxGK authentication-a relatively niche deployment. Patch availability across multiple stable kernel series (6.18.23, 6.19.13, 7.0) enables straightforward remediation. Priority should be HIGH for AFS-enabled systems with untrusted local users, MEDIUM for general multi-tenant Linux environments, and LOW for single-user workstations or systems without AFS support. The SSVC framework would likely classify this as 'scheduled' rather than 'out-of-band' patching given local-only exploitation and lack of automation potential across diverse targets.

Exploit ScenarioDerived

An attacker with local shell access to a multi-tenant Linux server running AFS with RxGK authentication crafts a malicious XDR-encoded token with key_length or ticket_length fields set to 0xfffffffd. When calling add_key() syscall with this token from an unprivileged account, the kernel's round_up() macro wraps the value to 0, passing bounds validation. The kzalloc() allocates zero bytes while memcpy() attempts to copy approximately 4 GiB of attacker-controlled data, overflowing heap memory. By carefully structuring the overflow data, the attacker corrupts adjacent kernel heap structures (credential structs, function pointers, or security context data) to escalate privileges to root or execute arbitrary kernel code. Publicly available exploit code exists demonstrating the integer wraparound and heap corruption primitives.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Apr 27, 2026

Heap buffer overflow in Linux kernel rxrpc subsystem allows local authenticated users to trigger memory corruption via crafted RxGK tokens. Exploitable through unprivileged add_key() system call when raw key/ticket lengths >= 0xfffffffd cause integer wraparound in round_up(), bypassing bounds checks while memcpy() copies up to 4 GiB into zero-sized heap allocation. Vendor patches available for stable branches 6.18.23, 6.19.13, and mainline 7.0. EPSS score of 0.02% (4th percentile) indicates low observed exploitation probability despite local privilege escalation potential with CVSS 7.8.

RemediationAI

Apply vendor-released patches immediately for affected kernel versions: upgrade to Linux 6.18.23 or later for 6.18.x series (commit 3e04596cba8a), upgrade to 6.19.13 or later for 6.19.x series (commit 49875b360c2b), or upgrade to 7.0 or later for mainline kernels (commit d179a868dd75). Patches available from https://git.kernel.org/stable/c/3e04596cba8a86cbff9c3f4bf0a524a3a488773c, https://git.kernel.org/stable/c/49875b360c2b83a3c226e189c502e501d83e6445, and https://git.kernel.org/stable/c/d179a868dd755b0cfcf7582e00943d702b9943b8. For systems unable to immediately patch, disable RxGK support by rebuilding the kernel without CONFIG_AF_RXRPC_RXGK or disable AFS entirely if not required (unload kafs module, set CONFIG_AFS_FS=n), which eliminates the vulnerable code path entirely but breaks AFS functionality for legitimate users. Restrict unprivileged access to add_key() syscall via kernel.unprivileged_userns_clone=0 and user namespace restrictions, though this may impact container runtimes and causes compatibility issues with applications relying on keyring operations. Monitor for unusual add_key() activity with large token sizes via auditd rules (auditctl -a always,exit -F arch=b64 -S add_key -F a2>=1000000), which adds logging overhead but provides detection capability. No configuration-based workaround exists that preserves full RxGK functionality while mitigating the vulnerability.

Affected VersionsENISA

Linux patch: 6.19.13
Linux 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6 <3e04596cba8a86cbff9c3f4bf0a524a3a488773c
Linux 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6 <49875b360c2b83a3c226e189c502e501d83e6445
Linux patch: 0
Linux 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6 <d179a868dd755b0cfcf7582e00943d702b9943b8
Linux 6.16
Linux patch: 6.18.23
Linux patch: 7.0

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability resides in rxrpc_preparse_xdr_yfs_rxgk(), part of the Linux kernel's RxRPC protocol implementation used for AFS (Andrew File System) authentication. RxGK (Rx Generic Kerberos) is a cryptographic framework for securing RxRPC connections. The function parses XDR-encoded tokens containing key material and Kerberos tickets. When processing u32 length fields from untrusted user input via the add_key() syscall, the code applies round_up(x, 4) for alignment before validation. For input values >= 0xfffffffd, this macro wraps to 0 due to integer overflow (0xfffffffd + 3 = 0x100000000, truncated to 0 in 32-bit arithmetic). The wrapped value passes bounds checks and allocates a zero-byte buffer via kzalloc(), but subsequent memcpy() still uses the original multi-gigabyte length value, writing far beyond allocated heap memory. The CPE strings indicate this affects multiple Linux kernel version ranges, with fixes applied across stable series 6.18.x, 6.19.x, and mainline 7.0+.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Linux) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
SUSE HIGH
Red Hat 7.3 HIGH

Primary rating from Vendor (Linux).

CVSS VectorVendor: Linux

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

4
Patch released
Apr 27, 2026 - 20:20 nvd
Patch available
CVSS changed
Apr 27, 2026 - 15:22 NVD
7.8 (HIGH)
Patch available
Apr 24, 2026 - 16:16 EUVD
CVE Published
Apr 24, 2026 - 14:44 nvd
HIGH 7.8

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2026-31641 is a heap buffer overflow in the Linux kernel rxrpc subsystem that allows authenticated local users to corrupt memory and potentially escalate privileges through malformed RxGK tokens. Organizations running vulnerable Linux kernel versions face risk of local privilege escalation if attackers gain any user account access; immediate patching of kernel versions 6.18.x, 6.19.x, and 7.0 is required to eliminate this attack vector.

Business Impact: High
Compensating Controls

Apply vendor patch. Until patching is complete, restrict local user account creation and enforce strict access controls limiting who can execute add_key() system calls; monitor system logs for unusual key-related syscall activity as interim mitigation.

Threat Intelligence Overview

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

39
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: High
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy