CVE-2026-31641: rxrpc: Fix RxGK token loading to check bounds

Published Apr 24, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

rxrpc: Fix RxGK token loading to check bounds

rxrpcpreparsexdryfsrxgk() reads the raw key length and ticket length from the XDR token as u32 values and passes each through roundup(x, 4) before using the rounded value for validation and allocation. When the raw length is >= 0xfffffffd, roundup() 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 addkey() call.

Fix this by:

(1) Rejecting raw key lengths above AFSTOKENGKKEYMAX and raw ticket lengths above AFSTOKENGKTOKENMAX before rounding, consistent with the caps that the RxKAD path already enforces via AFSTOKENRKTIXMAX.

(2) Sizing the flexible-array allocation from the validated raw key length via structsizet() 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 Software

11 affected components
Linux Linux kernel
Linux Linux kernel>=6.16.1<6.18.23
Linux Linux kernel>=6.19<6.19.13
Linux Linux kernel=6.16
Linux Linux kernel=7.0-rc1
Linux Linux kernel=7.0-rc2
Linux Linux kernel=7.0-rc3
Linux Linux kernel=7.0-rc4
Linux Linux kernel=7.0-rc5
Linux Linux kernel=7.0-rc6
Linux Linux kernel=7.0-rc7

Event History

Apr 24, 2026
CVE Published
via MITRE·02:44 PM
Data Sourced
via MITRE·02:44 PM
DescriptionSeverity
Data Sourced
via Red Hat·03:07 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-31641?

CVE-2026-31641 has been classified as a high-severity vulnerability due to its potential impact on the Linux kernel.

2

How do I fix CVE-2026-31641?

To fix CVE-2026-31641, ensure you update your Linux kernel to the latest stable version where this vulnerability has been patched.

3

What systems are affected by CVE-2026-31641?

CVE-2026-31641 affects system environments running vulnerable versions of the Linux kernel.

4

What is the nature of CVE-2026-31641?

CVE-2026-31641 involves a buffer bounds check issue in the rxrpc_preparse_xdr_yfs_rxgk() function within the Linux kernel.

5

Is CVE-2026-31641 being actively exploited?

As of now, there are no confirmed reports of CVE-2026-31641 being actively exploited in the wild.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203