CVE-2026-53355: net: rds: clear i_sends on setup unwind
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: rds: clear i_sends on setup unwind
The RDS IB connection teardown path is written so it can run during partial startup and on repeated shutdown attempts. It uses NULL pointers to distinguish resources that are still owned from resources that have already been released.
When rds_ib_setup_qp() fails after allocating i_sends but before allocating i_recvs, the sends_out path frees i_sends without clearing the pointer. A later shutdown pass can still treat that stale pointer as a live send ring allocation.
Clear i_sends after vfree() in the error unwind path so the existing shutdown logic continues to use the correct ownership state.
The Linux kernel CVE team has assigned CVE-2026-53355 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.11 with commit 3b12f73a5c2977153f28a224392fd4729b50d1dc and fixed in 5.10.259 with commit 66cccec111421a10efdc2c74499d15b93e7acae5 Issue introduced in 4.11 with commit 3b12f73a5c2977153f28a224392fd4729b50d1dc and fixed in 5.15.210 with commit 2c5e5e4a5970c41f16e3ad801a78719ed5d5c71b Issue introduced in 4.11 with commit 3b12f73a5c2977153f28a224392fd4729b50d1dc and fixed in 6.1.176 with commit 29d940026dce39e3018dab6f67c9427249321270 Issue introduced in 4.11 with commit 3b12f73a5c2977153f28a224392fd4729b50d1dc and fixed in 6.6.143 with commit e7cf30aa5f1fc6c2a86df65df8b731df20e44d79 Issue introduced in 4.11 with commit 3b12f73a5c2977153f28a224392fd4729b50d1dc and fixed in 6.12.94 with commit f16ad421a4e3e7db2d14bdf3b16f583bc4f3b30a Issue introduced in 4.11 with commit 3b12f73a5c2977153f28a224392fd4729b50d1dc and fixed in 6.18.36 with commit 1d4ec754ee3871f7e3670c67bb0298c9c5760926 Issue introduced in 4.11 with commit 3b12f73a5c2977153f28a224392fd4729b50d1dc and fixed in 7.0.13 with commit 27040bbca289a704eafcacca167d310c6ce2b1bc Issue introduced in 4.11 with commit 3b12f73a5c2977153f28a224392fd4729b50d1dc and fixed in 7.1 with commit 20cf0fb715c41111469577e85e35d15f099473e0 Issue introduced in 3.18.74 with commit 75a12b2fa80c2e4cc40a9f9305f95899850b7426 Issue introduced in 4.1.46 with commit c9459693fae9a1bf3f51f3db98617f694112e897 Issue introduced in 4.4.91 with commit 13099ee9c7d54b0a25f6c8397675aed99e9cfa45 Issue introduced in 4.9.54 with commit 5c6712ab4efb6cf60e16719ab6bcaface9cc268c
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-53355
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/rds/ib_cm.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/66cccec111421a10efdc2c74499d15b93e7acae5 https://git.kernel.org/stable/c/2c5e5e4a5970c41f16e3ad801a78719ed5d5c71b https://git.kernel.org/stable/c/29d940026dce39e3018dab6f67c9427249321270 https://git.kernel.org/stable/c/e7cf30aa5f1fc6c2a86df65df8b731df20e44d79 https://git.kernel.org/stable/c/f16ad421a4e3e7db2d14bdf3b16f583bc4f3b30a https://git.kernel.org/stable/c/1d4ec754ee3871f7e3670c67bb0298c9c5760926 https://git.kernel.org/stable/c/27040bbca289a704eafcacca167d310c6ce2b1bc https://git.kernel.org/stable/c/20cf0fb715c41111469577e85e35d15f099473e0