{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2026-31641","published":"2026-04-24T15:16:43.463000Z","last_modified":"2026-11-11T23:10:00.263000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","primary":false},"auth":true,"cwes":["CWE-125","CWE-190"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.16.1","version_end_excluding":"6.18.23"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.19","version_end_excluding":"6.19.13"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.16:-:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.16"},{"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"7.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"7.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"7.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"7.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"7.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"7.0"},{"criteria":"cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"7.0"}],"cpes_truncated":false,"vendors":["linux"],"products":["linux/linux_kernel"],"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2026-31641/","html_en":"/en/cve/CVE-2026-31641/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-31641","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-31641"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nrxrpc: Fix RxGK token loading to check bounds\n\nrxrpc_preparse_xdr_yfs_rxgk() reads the raw key length and ticket length\nfrom the XDR token as u32 values and passes each through round_up(x, 4)\nbefore using the rounded value for validation and allocation.  When the raw\nlength is >= 0xfffffffd, round_up() wraps to 0, so the bounds check and\nkzalloc both use 0 while the subsequent memcpy still copies the original\n~4 GiB value, producing a heap buffer overflow reachable from an\nunprivileged add_key() call.\n\nFix this by:\n\n (1) Rejecting raw key lengths above AFSTOKEN_GK_KEY_MAX and raw ticket\n     lengths above AFSTOKEN_GK_TOKEN_MAX before rounding, consistent with\n     the caps that the RxKAD path already enforces via AFSTOKEN_RK_TIX_MAX.\n\n (2) Sizing the flexible-array allocation from the validated raw key\n     length via struct_size_t() instead of the rounded value.\n\n (3) Caching the raw lengths so that the later field assignments and\n     memcpy calls do not re-read from the token, eliminating a class of\n     TOCTOU re-parse.\n\nThe control path (valid token with lengths within bounds) is unaffected.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 10","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 6","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 7","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 8","versions":[]},{"untrusted_vendor":"Red Hat","untrusted_product":"Red Hat Enterprise Linux 9","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/3e04596cba8a86cbff9c3f4bf0a524a3a488773c","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/49875b360c2b83a3c226e189c502e501d83e6445","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/d179a868dd755b0cfcf7582e00943d702b9943b8","tags":["Patch"]},{"url":"https://access.redhat.com/errata/RHSA-2026:27288","tags":[]},{"url":"https://access.redhat.com/errata/RHSA-2026:55618","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-31641","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2461548","tags":[]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31641.json","tags":[]}]},"bulletins":[{"source":"redhat","id":"RHSA-2026:55618","url":"https://access.redhat.com/errata/RHSA-2026:55618","published":"2026-08-18T10:21:04+00:00","severity":"high","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: kpatch-patch-6_12_0-211_16_1 security update"}},{"source":"redhat","id":"RHSA-2026:27288","url":"https://access.redhat.com/errata/RHSA-2026:27288","published":"2026-06-20T10:05:02+00:00","severity":"high","exploited":false,"untrusted":{"title":"Red Hat Security Advisory: kernel security, bug fix, and enhancement update"}}]}