RDMA/core: Validate the passed in fops for ib_get_ucaps()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.367.0.137.1In 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.
From the CVE record · Linux
The Linux kernel's RDMA/core ib_get_ucaps() relied on a device number without validating the file operations of a supplied file descriptor. A local user who finds a block device with the same device number can pass its file descriptor to masquerade as a ucap character device; no further impact is specified.
Engineers running Linux kernels with the affected RDMA/core code should check their systems; affected versions are not specified.