CVE-2026-31638: rxrpc: Only put the call ref if one was acquired
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
rxrpc: Only put the call ref if one was acquired
rxrpc_input_packet_on_conn() can process a to-client packet after the current client call on the channel has already been torn down. In that case chan->call is NULL, rxrpc_try_get_call() returns NULL and there is no reference to drop.
The client-side implicit-end error path does not account for that and unconditionally calls rxrpc_put_call(). This turns a protocol error path into a kernel crash instead of rejecting the packet.
Only drop the call reference if one was actually acquired. Keep the existing protocol error handling unchanged.
The Linux kernel CVE team has assigned CVE-2026-31638 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.2 with commit 5e6ef4f1017c7f844e305283bbd8875af475e2fc and fixed in 6.6.135 with commit b8f66447448d6c305a51413a67ec8ed26aa7d1dd Issue introduced in 6.2 with commit 5e6ef4f1017c7f844e305283bbd8875af475e2fc and fixed in 6.12.82 with commit 0c156aff8a2d4fa0d61db7837641975cf0e5452d Issue introduced in 6.2 with commit 5e6ef4f1017c7f844e305283bbd8875af475e2fc and fixed in 6.18.23 with commit 8299ca146489664e3c0c90a3b8900d8335b1ede4 Issue introduced in 6.2 with commit 5e6ef4f1017c7f844e305283bbd8875af475e2fc and fixed in 6.19.13 with commit 9fb09861e2b8d1abfe2efaf260c9f1d30080ea38 Issue introduced in 6.2 with commit 5e6ef4f1017c7f844e305283bbd8875af475e2fc and fixed in 7.0 with commit 6331f1b24a3e85465f6454e003a3e6c22005a5c5
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-31638
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/io_thread.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/b8f66447448d6c305a51413a67ec8ed26aa7d1dd https://git.kernel.org/stable/c/0c156aff8a2d4fa0d61db7837641975cf0e5452d https://git.kernel.org/stable/c/8299ca146489664e3c0c90a3b8900d8335b1ede4 https://git.kernel.org/stable/c/9fb09861e2b8d1abfe2efaf260c9f1d30080ea38 https://git.kernel.org/stable/c/6331f1b24a3e85465f6454e003a3e6c22005a5c5