CVE-2026-139665

RDMA/core: Fix swapped list_add_tail() arguments in ib_add_sub_device()

Published Nov 30, 2026 CVSS 3.1 · 2.3 Low EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/core: Fix swapped list_add_tail() arguments in ib_add_sub_device()

ib_add_sub_device() links a new sub-device into its parent's sub-device
list with:

list_add_tail(&parent->subdev_list_head, &sub->subdev_list);

list_add_tail(new, head) expects the node to insert as the first
argument and the list head as the second, so the call above does the
opposite of what was intended: it treats the parent's list head as the
new node and the sub-device's node as the list head.

Because _ib_alloc_device() initialises subdev_list to a self-referencing
empty head, the misplaced insertion does not crash, but it corrupts the
parent->subdev_list_head list. After adding two or more sub-devices,
only the last one is reachable through the parent's head, and
ib_del_sub_device_and_put()'s list_del() on &sub->subdev_list rewrites
the head pointers, potentially severing earlier sub-devices from the
chain. During parent teardown, the reverse iteration over
subdev_list_head then skips the orphaned sub-devices, so their
del_sub_dev() callbacks are never invoked and ib_device_put() on the
parent is never paired, leaking both the HW sub-devices and a refcount.

Swap the arguments to match the documented intent: insert the
sub-device node into the parent's list head.

Analysis

AI-generated

Technical impact

The vulnerability originates from improperly swapped arguments to list_add_tail in the RDMA core's ib_add_sub_device function, causing the kernel to treat a list head as a node and corrupt the parent's sub-device list. This data-structure corruption leads to reference-count leaks and orphaned sub-devices that are never freed during teardown. The weakness conforms to CWE-665 (Improper Initialization) as the kernel misuses a list head, and the resulting resource accumulation aligns with CWE-401 (Memory Leak).

Affected Systems

All Linux kernel builds that lack the commit 6061bdc4f5c7d910de24c033764d36ed64514ef2, i.e., versions before the upstream fix. This includes distribution kernels shipping older code and systems utilizing RDMA sub‑devices such as Infiniband or RoCE adapters. Servers with active RDMA traffic are at highest risk.

Risk and Exploitability

The fault does not extend to a direct network or remote code execution vector. The most likely attack surface is local or privileged execution that can instantiate or dismantle RDMA sub‑devices, for example, through a kernel module or privileged user process. The lack of an EPSS score and absence from the CISA KEV catalog imply that large‑scale exploitation is not currently known. Nevertheless, repeated creation and removal of RDMA devices by an attacker or an unstable workload can exacerbate the reference-count leak, potentially exhausting kernel memory over time and degrading system stability, which constitutes a moderate risk in busy RDMA environments and a lower risk on idle systems.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update to a kernel release that includes the upstream commit 6061bdc4f5c7d910de24c033764d36ed64514ef2 or a later version with the fix.
  • If an immediate kernel upgrade is infeasible, backport the patch that swaps the arguments to list_add_tail into your current kernel tree and rebuild the kernel.
  • Disable or remove the RDMA subsystem from the kernel (e.g., kernel configuration option "CONFIG_RDMA" set to m or n) if RDMA functionality is not required, thereby eliminating the risk surface.

Generated by OpenCVE AI on December 1, 2026 at 14:05 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-772
References
Metrics threat_severity

None

cvssV3_1

{'score': 2.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Low

Type Values Removed Values Added
Weaknesses CWE-401
CWE-665
Type Values Removed Values Added
Weaknesses CWE-401
CWE-665
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/core: Fix swapped list_add_tail() arguments in ib_add_sub_device() ib_add_sub_device() links a new sub-device into its parent's sub-device list with: list_add_tail(&parent->subdev_list_head, &sub->subdev_list); list_add_tail(new, head) expects the node to insert as the first argument and the list head as the second, so the call above does the opposite of what was intended: it treats the parent's list head as the new node and the sub-device's node as the list head. Because _ib_alloc_device() initialises subdev_list to a self-referencing empty head, the misplaced insertion does not crash, but it corrupts the parent->subdev_list_head list. After adding two or more sub-devices, only the last one is reachable through the parent's head, and ib_del_sub_device_and_put()'s list_del() on &sub->subdev_list rewrites the head pointers, potentially severing earlier sub-devices from the chain. During parent teardown, the reverse iteration over subdev_list_head then skips the orphaned sub-devices, so their del_sub_dev() callbacks are never invoked and ib_device_put() on the parent is never paired, leaking both the HW sub-devices and a refcount. Swap the arguments to match the documented intent: insert the sub-device node into the parent's list head.
Title RDMA/core: Fix swapped list_add_tail() arguments in ib_add_sub_device()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:36 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Low
Public date
Nov 30, 2026, 1:36 PM