CVE-2026-139355
published high CVSS 3.1 · 7.0RDMA/rxe: Hold netdev reference for transmit skbs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e04100461ab819f13350de4c51c324f1c2223f0c · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < acf8eb1a285c4ee840fdd4c77d573c791e96402b · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3e582711768f88c296b06624a319b18dc26f450b · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 357bb10d3fdd35c7c8023796e5d96197b19b2cbf · 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 19881618ffa454c63e6b6bf34acd7cac28c695dc · 0 to < 6.6.163 · 0 to < 6.12.119 · 0 to < 6.18.65 · 0 to < 7.3.6 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6.163 through 6.6.* · 6.12.119 through 6.12.* · 6.18.65 through 6.18.* · 7.3.6 through 7.3.* · 7.4-rc1 and later · Other versions: affected | Unaffected | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The stale skb->dev set in rxe_init_packet() is dereferenced by rxe_prepare()/rxe_find_route() on TX skbs built for QPs created via /dev/infiniband/uverbs (ibv_post_send). Remote READ requests can drive responder TX, but they supply no malformed data and corrupt no transiting data, so the vector stays local. AC:H - The base rxe netdev is pinned by the ib_device port reference until its QPs are destroyed. Only a VLAN/macvlan upper-device GID netdev can be freed in the window (GID ref dropped via call_rcu put_gid_ndev), and that unregister must land between rxe_init_packet() and ip_output(); the unprivileged sender cannot cause or time it. PR:L - The uverbs device node is 0666, and create_qp/modify_qp/post_send have no capability or netns check on the user-chosen sgid_index, so any local user can send through a VLAN GID on an admin-created rxe link (rdma link add itself needs init CAP_NET_ADMIN). UI:N - No victim action is needed: the attacker's own send work requests drive rxe_requester() to build skbs that hold the unreferenced GID netdev pointer. S:U - The freed net_device and the code dereferencing it are both inside the same kernel; no VM, IOMMU or sandbox boundary is crossed. C:H - rxe_find_route() reads nd_net and ifindex, and rxe_prepare() follows dev_addr, from a freed net_device that can be reclaimed. A forged nd_net sends ip_route_output_key() through attacker-shaped netns and fib structures. I:H - Route lookup through a forged netns, and dst refcounting on structures it reaches, gives writes through attacker-controlled pointers; the stale device is also passed as indev to netfilter POST_ROUTING hooks. This is a net_device use-after-free that can be exploited. A:H - Dereferencing the freed net_device's nd_net/dev_addr pointers in the rxe_wq kworker oopses the kernel when the memory is poisoned or reused.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < e04100461ab819f13350de4c51c324f1c2223f0c (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < acf8eb1a285c4ee840fdd4c77d573c791e96402b (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 3e582711768f88c296b06624a319b18dc26f450b (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 357bb10d3fdd35c7c8023796e5d96197b19b2cbf (affected · git)1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 to < 19881618ffa454c63e6b6bf34acd7cac28c695dc (affected · git)0 to < 6.6.163 (affected · semver)0 to < 6.12.119 (affected · semver)0 to < 6.18.65 (affected · semver)0 to < 7.3.6 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- https://git.kernel.org/stable/c/19881618ffa454c63e6b6bf34acd7cac28c695dc
- https://git.kernel.org/stable/c/357bb10d3fdd35c7c8023796e5d96197b19b2cbf
- https://git.kernel.org/stable/c/3e582711768f88c296b06624a319b18dc26f450b
- https://git.kernel.org/stable/c/acf8eb1a285c4ee840fdd4c77d573c791e96402b
- https://git.kernel.org/stable/c/e04100461ab819f13350de4c51c324f1c2223f0c
Provider assertions
1Linux · cna
RDMA/rxe: Hold netdev reference for transmit skbs
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2a5c3edee9911033bce709f74497d6452fb9df974f189748c0716027bc4740e7
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record