Linux
RDMA/core: Validate the passed in fops for ib_get_ucaps()
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 61e51682816d395307f78ae06d640089054c28ab, < 96b6e98ff12d50ed5817230c6f1188e1150d225d
- >= 61e51682816d395307f78ae06d640089054c28ab, < aa181287ebdcc53ee0ba5c2f8243e2d541ebc19b
- >= 61e51682816d395307f78ae06d640089054c28ab, < 4a1b1ac2744694a2ecd66a84bdb1445f4ef24bee
Fixed in 96b6e98ff12d50ed5817230c6f1188e1150d225d, aa181287ebdcc53ee0ba5c2f8243e2d541ebc19b, 4a1b1ac2744694a2ecd66a84bdb1445f4ef24bee
- 6.15
Fixed in 0, 6.18.36, 7.0.13, 7.1
Mitigation
Upgrade Linux to 96b6e98ff12d50ed5817230c6f1188e1150d225d or aa181287ebdcc53ee0ba5c2f8243e2d541ebc19b or 4a1b1ac2744694a2ecd66a84bdb1445f4ef24bee or later.
Upgrade Linux to 0 or 6.18.36 or 7.0.13 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.