Heap-based buffer overflow in Linux kernel - CVE-2026-31641

 

Heap-based buffer overflow in Linux kernel - CVE-2026-31641

Published: April 25, 2026


Vulnerability identifier: #VU127755
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-31641
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available
Vendor: Linux Foundation
Affected software:
Linux kernel

Detailed vulnerability description

The vulnerability allows a local user to execute arbitrary code.

The vulnerability exists due to a heap-based buffer overflow in rxrpc_preparse_xdr_yfs_rxgk() when processing a crafted XDR token through add_key(). A local user can supply a token with oversized length values that trigger integer wraparound and overflow a heap buffer to execute arbitrary code.

The issue is reachable from an unprivileged add_key() call.


How to mitigate CVE-2026-31641

Install security update from vendor's repository.

Sources