[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2026012306-CVE-2025-71157-3a03@gregkh>
Date: Fri, 23 Jan 2026 15:27:08 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-71157: RDMA/core: always drop device refcount in ib_del_sub_device_and_put()
From: Greg Kroah-Hartman <gregkh@...nel.org>
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.
The Linux kernel CVE team has assigned CVE-2025-71157 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.11 with commit bca51197620a257e2954be99b16f05115c3b2630 and fixed in 6.12.64 with commit 20436f2742a92b7afeb2504eb559a98d2196b001
Issue introduced in 6.11 with commit bca51197620a257e2954be99b16f05115c3b2630 and fixed in 6.18.4 with commit fe8d456080423b9ed410469fbd1e2098d3acce2b
Issue introduced in 6.11 with commit bca51197620a257e2954be99b16f05115c3b2630 and fixed in 6.19-rc4 with commit fa3c411d21ebc26ffd175c7256c37cefa35020aa
Please see https://www.kernel.org for a full list of currently supported
kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to
older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2025-71157
will be updated if fixes are backported, please check that for the most
up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/infiniband/core/device.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest
stable kernel version for this, and many other bugfixes. Individual
changes are never tested alone, but rather are part of a larger kernel
release. Cherry-picking individual commits is not recommended or
supported by the Linux kernel community at all. If however, updating to
the latest release is impossible, the individual changes to resolve this
issue can be found at these commits:
https://git.kernel.org/stable/c/20436f2742a92b7afeb2504eb559a98d2196b001
https://git.kernel.org/stable/c/fe8d456080423b9ed410469fbd1e2098d3acce2b
https://git.kernel.org/stable/c/fa3c411d21ebc26ffd175c7256c37cefa35020aa
Powered by blists - more mailing lists