← CVE Intelligence

CVE-2025-71157

RDMA/core: always drop device refcount in ib_del_sub_device_and_put() PUBLISHED

Description (CNA)

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 (CNA)

Vendor / productVersions
Linux / Linuxaffected bca51197620a257e2954be99b16f05115c3b2630 before 20436f2742a92b7afeb2504eb559a98d2196b001; affected bca51197620a257e2954be99b16f05115c3b2630 before fe8d456080423b9ed410469fbd1e2098d3acce2b; affected bca51197620a257e2954be99b16f05115c3b2630 before fa3c411d21ebc26ffd175c7256c37cefa35020aa
Linux / Linuxaffected 6.11; unaffected 0 before 6.11; unaffected 6.12.64 through 6.12.*; unaffected 6.18.4 through 6.18.*; unaffected 6.19 through *

CWE

No CWE identifiers supplied.

References