CVE-2026-31634: rxrpc: fix reference count leak in rxrpc_server_keyring()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: fix reference count leak in rxrpc_server_keyring()
This patch fixes a reference count leak in rxrpc_server_keyring() by checking if rx->securities is already set.
The Linux kernel CVE team has assigned CVE-2026-31634 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.22 with commit 17926a79320afa9b95df6b977b40cca6d8713cea and fixed in 5.15.203 with commit fc76d0bd00850b7372f0a4a319c0c60f80487632 Issue introduced in 2.6.22 with commit 17926a79320afa9b95df6b977b40cca6d8713cea and fixed in 6.1.169 with commit c6d9ea26cf8756ad6f162578e94a5f82f6fae3c2 Issue introduced in 2.6.22 with commit 17926a79320afa9b95df6b977b40cca6d8713cea and fixed in 6.6.135 with commit 9ce36d28f67c2a477a7e2f03480de3f6783fb363 Issue introduced in 2.6.22 with commit 17926a79320afa9b95df6b977b40cca6d8713cea and fixed in 6.12.82 with commit 12de9e0e0b0b7058be7dfb8a5927eb565bc25780 Issue introduced in 2.6.22 with commit 17926a79320afa9b95df6b977b40cca6d8713cea and fixed in 6.18.23 with commit 8ee931c3cd97f1c42b4fbf057f04b9dae45dfb7a Issue introduced in 2.6.22 with commit 17926a79320afa9b95df6b977b40cca6d8713cea and fixed in 6.19.13 with commit 139c750bf06649097d98b0bc41e2a678b4627e27 Issue introduced in 2.6.22 with commit 17926a79320afa9b95df6b977b40cca6d8713cea and fixed in 7.0 with commit f125846ee79fcae537a964ce66494e96fa54a6de
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-31634
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/server_key.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/fc76d0bd00850b7372f0a4a319c0c60f80487632 https://git.kernel.org/stable/c/c6d9ea26cf8756ad6f162578e94a5f82f6fae3c2 https://git.kernel.org/stable/c/9ce36d28f67c2a477a7e2f03480de3f6783fb363 https://git.kernel.org/stable/c/12de9e0e0b0b7058be7dfb8a5927eb565bc25780 https://git.kernel.org/stable/c/8ee931c3cd97f1c42b4fbf057f04b9dae45dfb7a https://git.kernel.org/stable/c/139c750bf06649097d98b0bc41e2a678b4627e27 https://git.kernel.org/stable/c/f125846ee79fcae537a964ce66494e96fa54a6de