RDMA/core: always drop device refcount in ib_del_sub_device_and_put()
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.12.646.18.46.19In the Linux kernel, the following vulnerability has been resolved:
RDMA/core: always drop device refcount in ib_del_sub_device_and_put()
Since nldev_deldev() (introduced by commit 060c642b2ab8 ("RDMA/nldev: Add support to add/delete a sub IB device through netlink") grabs a reference using ib_device_get_by_index() before calling ib_del_sub_device_and_put(), we need to drop that reference before returning -EOPNOTSUPP error.
From the CVE record · Linux
The Linux kernel’s RDMA/core code can fail to release a device reference when deletion of a sub-device returns an unsupported-operation error. The input does not establish an attacker path or specify whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with RDMA support should check their versions; affected versions are not specified in the input.