CVE-2026-46012: rxrpc: Fix memory leaks in rxkad_verify_response()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: Fix memory leaks in rxkad_verify_response()
Fix rxkad_verify_response() to free the ticket and the server key under all circumstances by initialising the ticket pointer to NULL and then making all paths through the function after the first allocation has been done go through a single common epilogue that just releases everything - where all the releases skip on a NULL pointer.
The Linux kernel CVE team has assigned CVE-2026-46012 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.11 with commit ec832bd06d6fdf08b0455ab7c2a7a9104e029638 and fixed in 6.6.140 with commit c4b8f32e73eafd4a5076be890c7c8506ec04567c Issue introduced in 5.11 with commit ec832bd06d6fdf08b0455ab7c2a7a9104e029638 and fixed in 6.12.86 with commit 852b9d64cea421336579b2de3d1338dfa677e2dd Issue introduced in 5.11 with commit ec832bd06d6fdf08b0455ab7c2a7a9104e029638 and fixed in 6.18.27 with commit 861b9a0a1823bf064a7b810d29502a9ef043f40f Issue introduced in 5.11 with commit ec832bd06d6fdf08b0455ab7c2a7a9104e029638 and fixed in 7.0.4 with commit c91f33fb8356dedc82bc56ce210f1a5dbee62a52 Issue introduced in 5.11 with commit ec832bd06d6fdf08b0455ab7c2a7a9104e029638 and fixed in 7.1-rc1 with commit 34f61a07e0cdefaecd3ec03bb5fb22215643678f
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-46012
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/rxrpc/rxkad.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/c4b8f32e73eafd4a5076be890c7c8506ec04567c https://git.kernel.org/stable/c/852b9d64cea421336579b2de3d1338dfa677e2dd https://git.kernel.org/stable/c/861b9a0a1823bf064a7b810d29502a9ef043f40f https://git.kernel.org/stable/c/c91f33fb8356dedc82bc56ce210f1a5dbee62a52 https://git.kernel.org/stable/c/34f61a07e0cdefaecd3ec03bb5fb22215643678f