Linux
RDMA/core: always drop device refcount in ib_del_sub_device_and_put()
In 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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= bca51197620a257e2954be99b16f05115c3b2630, < 20436f2742a92b7afeb2504eb559a98d2196b001
- >= bca51197620a257e2954be99b16f05115c3b2630, < fe8d456080423b9ed410469fbd1e2098d3acce2b
- >= bca51197620a257e2954be99b16f05115c3b2630, < fa3c411d21ebc26ffd175c7256c37cefa35020aa
Fixed in 20436f2742a92b7afeb2504eb559a98d2196b001, fe8d456080423b9ed410469fbd1e2098d3acce2b, fa3c411d21ebc26ffd175c7256c37cefa35020aa
- 6.11
Fixed in 0, 6.12.64, 6.18.4, 6.19
Mitigation
Upgrade Linux to 20436f2742a92b7afeb2504eb559a98d2196b001 or fe8d456080423b9ed410469fbd1e2098d3acce2b or fa3c411d21ebc26ffd175c7256c37cefa35020aa or later.
Upgrade Linux to 0 or 6.12.64 or 6.18.4 or 6.19 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.