CVE-2026-53188: RDMA/core: Validate the passed in fops for ib_get_ucaps()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: Validate the passed in fops for ib_get_ucaps()
Sashiko pointed out it is not safe to rely only on the devt because char/block alias so if the user finds a block device with the same dev_t it can masquerade as a ucap cdev fd.
Test the f_ops to only accept authentic cdevs.
The Linux kernel CVE team has assigned CVE-2026-53188 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.15 with commit 61e51682816d395307f78ae06d640089054c28ab and fixed in 6.18.36 with commit 96b6e98ff12d50ed5817230c6f1188e1150d225d Issue introduced in 6.15 with commit 61e51682816d395307f78ae06d640089054c28ab and fixed in 7.0.13 with commit aa181287ebdcc53ee0ba5c2f8243e2d541ebc19b Issue introduced in 6.15 with commit 61e51682816d395307f78ae06d640089054c28ab and fixed in 7.1 with commit 4a1b1ac2744694a2ecd66a84bdb1445f4ef24bee
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-53188
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:
drivers/infiniband/core/ucaps.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/96b6e98ff12d50ed5817230c6f1188e1150d225d https://git.kernel.org/stable/c/aa181287ebdcc53ee0ba5c2f8243e2d541ebc19b https://git.kernel.org/stable/c/4a1b1ac2744694a2ecd66a84bdb1445f4ef24bee