# CVE-2025-71157: RDMA/core: always drop device refcount in ib_del_sub_device_and_put()

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-01-23T14:25:56.458Z
- Modified: 2026-11-05T22:17:38.437Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from bca51197620a257e2954be99b16f05115c3b2630 before 20436f2742a92b7afeb2504eb559a98d2196b001; from bca51197620a257e2954be99b16f05115c3b2630 before fe8d456080423b9ed410469fbd1e2098d3acce2b; from bca51197620a257e2954be99b16f05115c3b2630 before fa3c411d21ebc26ffd175c7256c37cefa35020aa; 6.11 (not affected: before 6.11; from 6.12.64 up to 6.12.*; from 6.18.4 up to 6.18.*; from 6.19 up to *)
- linux linux_kernel: from 6.11 before 6.12.64; from 6.13 before 6.18.4; 6.19

## References

- <https://git.kernel.org/stable/c/20436f2742a92b7afeb2504eb559a98d2196b001> (patch)
- <https://git.kernel.org/stable/c/fe8d456080423b9ed410469fbd1e2098d3acce2b> (patch)
- <https://git.kernel.org/stable/c/fa3c411d21ebc26ffd175c7256c37cefa35020aa> (patch)

## Sources

- CVE List: [CVE-2025-71157](https://www.cve.org/CVERecord?id=CVE-2025-71157), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2025-71157](https://nvd.nist.gov/vuln/detail/CVE-2025-71157), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2025-71157 · Whole record: https://cve.day/CVE-2025-71157.json · Rebuilt by cve.day 2026-11-25T22:59:10.839Z
