Vulnerability · Published Apr 24, 2026 · Assigned by Linux
CVE-2026-31641rxrpc: Fix RxGK token loading to check bounds
High 7.8
In plain English
A high-severity integer overflow in Linux from Linux. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.1% (higher than 4% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | kernel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-debug | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-debug-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-debug-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-debug-devel-matched | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-debug-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-debug-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-debug-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-devel-matched | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-64k-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-abi-stablelists | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-cross-headers | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-debug | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-debug-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-debug-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-debug-devel-matched | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-debug-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-debug-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-debug-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-debug-uki-virt | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-devel-matched | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-doc | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-headers | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-modules-extra-matched | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-debug | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-debug-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-debug-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-debug-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-debug-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-debug-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-64k-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-debug | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-debug-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-debug-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-debug-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-debug-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-debug-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-rt-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-tools | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-tools-libs | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-tools-libs-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-uki-virt | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-uki-virt-addons | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-zfcpdump | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-zfcpdump-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-zfcpdump-devel | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-zfcpdump-devel-matched | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-zfcpdump-modules | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-zfcpdump-modules-core | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | kernel-zfcpdump-modules-extra | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | libperf | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | perf | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | python3-perf | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | rtla | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| AlmaLinux:10 | rv | 6.12.0-211.26.1.el10_2 | ALSA-2026:27288 |
| Debian:14 | linux | 6.19.13-1 | DEBIAN-CVE-2026-31641 |
| Rocky Linux:10 | kernel | 0:6.12.0-211.26.1.el10_2 | RLSA-2026:27288 |
| Ubuntu:25.10 | linux | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-allwinner-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:25.10 | linux-aws | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-aws-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-aws-6.14 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-aws-6.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-aws-6.2 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-aws-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:25.10 | linux-azure | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-azure-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-azure-6.11 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-azure-6.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-azure-6.2 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-azure-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:25.10 | linux-azure-fde | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-azure-fde-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-azure-fde-6.2 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:25.10 | linux-gcp | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-gcp-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-gcp-6.11 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-gcp-6.14 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-gcp-6.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-gcp-6.2 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-gcp-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-hwe-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-hwe-6.11 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-hwe-6.14 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-hwe-6.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-hwe-6.2 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-hwe-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-intel-iot-realtime | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-lowlatency-hwe-6.11 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.2 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-lowlatency-hwe-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:26.04:LTS | linux-nvidia | 7.0.0-1006.6 | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-nvidia-6.11 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-nvidia-6.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-nvidia-6.2 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-nvidia-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-oem-5.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-oem-6.0 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-oem-6.1 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-oem-6.11 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-oem-6.14 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-oem-6.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-oem-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-oem-6.8 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:25.10 | linux-oracle | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-oracle-6.14 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-oracle-6.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-oracle-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:25.10 | linux-raspi | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-raspi-realtime | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-realtime | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:25.10 | linux-realtime | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-riscv | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:25.10 | linux-riscv | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-riscv-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-riscv-6.14 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:24.04:LTS | linux-riscv-6.17 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-riscv-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-starfive-5.19 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-starfive-6.2 | no fix listed | UBUNTU-CVE-2026-31641 |
| Ubuntu:22.04:LTS | linux-starfive-6.5 | no fix listed | UBUNTU-CVE-2026-31641 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 0ca100ff4df64f5d0f6c1dd5080c3e096786bea6 – before 3e04596cba8a86cbff9c3f4bf0a524a3a488773c0ca100ff4df64f5d0f6c1dd5080c3e096786bea6 – before 49875b360c2b83a3c226e189c502e501d83e64450ca100ff4df64f5d0f6c1dd5080c3e096786bea6 – before d179a868dd755b0cfcf7582e00943d702b9943b8 |
| Linux | Linux | 6.16 |
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://git.kernel.org/stable/c/3e04596cba8a86cbff9c3f4bf0a524a3a488773c
- https://git.kernel.org/stable/c/49875b360c2b83a3c226e189c502e501d83e6445
- https://git.kernel.org/stable/c/d179a868dd755b0cfcf7582e00943d702b9943b8
- https://access.redhat.com/security/cve/CVE-2026-31641 vdb-entry, x_refsource_REDHAT
- RHBZ#2461548 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31641.json x_sadp-csaf-vex
- https://access.redhat.com/errata/RHSA-2026:27288 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:55618 vendor-advisory, x_refsource_REDHAT