CVE-2026-139355

RDMA/rxe: Hold netdev reference for transmit skbs

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Hold netdev reference for transmit skbs

rxe_init_packet() assigns skb->dev from an RCU-protected GID attribute
without holding a netdev reference. If the netdev is unregistered before
the skb is freed, subsequent accesses to skb->dev are unsafe.

Hold a reference with dev_hold() when the skb is initialized and release
it from the transmit destructor or via rxe_put_skb() on error paths that
run before the destructor is installed.

skb->dev can change on the TX path (VLAN/bond/tunnel, ip_finish_output2,
etc.), so put must use the same netdev that was held. Stash that pointer
in skb_shinfo()->destructor_arg: skb->cb is already used by
rxe_pkt_info and is rewritten by IP control blocks.

To avoid blocking netdev unregistration on held skbs, flush all QPs to
the error state on NETDEV_GOING_DOWN and NETDEV_UNREGISTER so pending TX
work is drained and references can be dropped.

Analysis

AI-generated

Technical impact

The Linux kernel RDMA/rxe driver contains a flaw where rxe_init_packet assigns skb->dev from an RCU‑protected GID attribute without holding a netdev reference. If the associated network device is unregistered before the skb is freed, subsequent accesses to skb->dev become invalid, resulting in an unsafe use‑after‑free scenario. This undefined behavior could lead to a kernel crash or, if an attacker can trigger the fault with crafted RDMA traffic, potentially allow arbitrary code execution at kernel privilege. The weakness aligns with CWE-416, use‑after‑free, and can also be considered a classic race condition (CWE-362).

Affected Systems

The vulnerability is present in the Linux kernel’s RDMA/rxe module, which implements the RDMA over Ethernet (RoCE) interface. No specific kernel version range is listed by the CNA, so any kernel containing the legacy rxe_init_packet logic prior to the upstream fix is potentially affected. The issue is not tied to a particular distribution but applies to any Linux system that enables RDMA/rxe drivers.

Risk and Exploitability

The EPSS score for this vulnerability is not available, and it is not currently listed in the CISA KEV catalog, implying that no public exploit has been documented yet. Nevertheless, the potential for a kernel crash or privilege escalation makes the risk significant. The likely attack vector is local or remote communication over RDMA interfaces that could be exploited if an attacker can send malicious packets to a system running the affected driver. Because the flaw involves resource deallocation, the attacker must enable the RDMA driver and cause its underlying QPs or network devices to be torn down while skbs remain in flight. Given the severity of the consequence, administrators should treat this vulnerability as high priority until a kernel update is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the kernel to the latest stable release that includes the fixed rxe_init_packet implementation, which properly holds a netdev reference and clears it on cleanup.
  • After updating, confirm that the RDMA/rxe driver flushes all QPs during NETDEV_GOING_DOWN and NETDEV_UNREGISTER events so that pending transmit work is drained before the network driver is unregistered.
  • If an immediate kernel update is impractical, temporarily disable RDMA/rxe interfaces on systems that do not require RDMA until the kernel patch is applied, to prevent the use‑after‑free condition from occurring.

Generated by OpenCVE AI on November 30, 2026 at 22:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: RDMA/rxe: Hold netdev reference for transmit skbs rxe_init_packet() assigns skb->dev from an RCU-protected GID attribute without holding a netdev reference. If the netdev is unregistered before the skb is freed, subsequent accesses to skb->dev are unsafe. Hold a reference with dev_hold() when the skb is initialized and release it from the transmit destructor or via rxe_put_skb() on error paths that run before the destructor is installed. skb->dev can change on the TX path (VLAN/bond/tunnel, ip_finish_output2, etc.), so put must use the same netdev that was held. Stash that pointer in skb_shinfo()->destructor_arg: skb->cb is already used by rxe_pkt_info and is rewritten by IP control blocks. To avoid blocking netdev unregistration on held skbs, flush all QPs to the error state on NETDEV_GOING_DOWN and NETDEV_UNREGISTER so pending TX work is drained and references can be dropped.
Title RDMA/rxe: Hold netdev reference for transmit skbs
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM