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: 8.5 [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]
CVE-ID: CVE-2026-31641
CWE-ID: CWE-122
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Linux kernel
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
kernel (Red Hat package)

How to mitigate CVE-2026-31641

Install security update from vendor's repository.

Linux kernel - update to 7.0 rc3
kernel (Red Hat package) - update to 6.12.0-211.26.1.el10_2

External References

Related Security Bulletins