CVE-2026-139288
published high CVSS 3.1 · 7.5RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux8700e3e7c4857d28ebaa824509934556da0b3e76 to < 01b8c1cb0504b1f03850bf7b6a30c532508a4177 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 545ae9f2702c5ea6999c92558f5b0733f38fc83c · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < fc4959ae561c625f0960e526d9f5fcb11125249c · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 6b3dc360387a343fac825ae74da67de01a662cd8 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 9d370d6492653df247fe3df41d08a07792ae4cae · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 2c2e0650b71be23998d7370fc439f7a5ec0eab80 · 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 7d7214b39b14c9763c14445b139f63369063b65e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.8 (affected) · 0 to < 4.8 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 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) · Other versions: affected | Version-specific | 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: Clear pkt->qp before the early drop exits in rxe_rcv() rxe_rcv() puts pkt->qp at its drop label, but leaves pkt->qp uninitialized on the two paths that take an early goto: if (unlikely(skb->len < RXE_BTH_BYTES)) goto drop; if (rxe_chk_dgid(rxe, skb) < 0) goto drop; pkt->opcode = bth_opcode(pkt); pkt->psn = bth_psn(pkt); pkt->qp = NULL; <- too late for the gotos above ... drop: if (pkt->qp) rxe_put(pkt->qp); pkt points into skb->cb, which rxe does not own at this point: the network stack has used that space for its own state. For IPv6, ip6_rcv_core() memsets inet6_skb_parm and then writes IP6CB(skb)->nhoff = offsetof(struct ipv6hdr, nexthdr); at offset 14, so the qword at cb + 8, which is where pkt->qp lives, reads back as 0x0006000000000000 for every IPv6 packet. Any IPv6 datagram to port 4791 whose payload is shorter than the BTH takes the first goto and reaches the drop label with that value, so rxe_put() runs refcount_dec_and_test() on 0x0006000000000150 and the kernel faults, in softirq, on a non-canonical address: general protection fault, probably for non-canonical address 0x0006000000000150: 0000 [#1] PREEMPT SMP RIP: 0010:__rxe_put+0x.../... Call Trace: <IRQ> rxe_rcv+0x.../... [rdma_rxe] rxe_udp_encap_recv+0x.../... [rdma_rxe] udp_queue_rcv_one_skb ... Kernel panic - not syncing: Fatal exception in interrupt The fault happens in softirq, so it panics even with panic_on_oops=0, and with panic=0 the machine hangs until it is power cycled. A remote sender only needs to send an empty UDP datagram to port 4791; no RDMA connection, GID or other state is involved and the rxe socket is bound in init_net. IPv4 is not affected: ip_rcv_core() memsets the whole inet_skb_parm, so the pkt->qp slot is zero there. Fix by clearing pkt->qp before the first early exit. pkt->qp is only ever assigned a reference-owning value by hdr_check() and rxe_rcv_mcast_pkt(), both of which run after this point, so the put at the drop label stays balanced. The ordering has been unsafe since the driver was merged: the two early gotos have preceded pkt->qp = NULL in every version since 8700e3e7c485. Testing done: the driver was built and run on a 6.2 vendor tree that carries this code, where a single 0-byte IPv6 datagram to port 4791 reproduced the panic above (that tree does not pull the UDP header in rxe_udp_encap_recv(), so payloads of 0..3 bytes reach the first goto there, versus 0..11 on mainline). With this change, the same packets are dropped as intended and tracing the drop label shows pkt->qp is 0 on every path that reaches it. Not done: the mainline tree was not built in the environment used to prepare this, and the reproducer is left out of this message on purpose - both are available on request.
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.5 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Scenarios
- en: AV:N - A single short UDP datagram to the RoCEv2 port 4791, over routable IPv6 or IPv4 with options, is handled by rxe_udp_encap_recv(), which calls rxe_rcv(). The `skb->len < RXE_BTH_BYTES` goto drop reaches rxe_put() on the stale skb->cb slot. The rxe UDP tunnel socket listens on any address of the netns that owns the rxe netdev. AC:L - No race or memory-layout dependency. For IPv6, ip6_rcv_core() always writes IP6CB->nhoff=6, so pkt->qp reads as 0x0006000000000000 for every packet, and any payload under 12 bytes takes the first goto. The only precondition is the Soft-RoCE deployment itself, i.e. an rxe link on the receiving netdev. PR:N - The faulting goto is the first check in rxe_rcv(), before rxe_chk_dgid(), hdr_check() or any QP lookup. No RDMA connection, GID match, QP number or authentication is needed, only a UDP datagram with a valid checksum. UI:N - Once an rxe device is bound to the interface, the crash needs no action from any local user or administrator; the attacker's packet alone triggers it. S:U - The bad pointer is dereferenced and the fault occurs in the same kernel that received the packet; no VM, IOMMU or sandbox boundary is crossed. C:N - The stale value comes from header offsets (nhoff for IPv6, or IPv4 rr/ts), so its top 16 bits are never 0xffff. It can never point into kernel memory, and the refcount_dec_and_test() in __rxe_put() faults without disclosing anything. I:N - Because the pointer is always non-canonical (or a user address blocked by SMAP/PAN), the kref decrement on qp->elem.ref_cnt never lands on kernel data, so no kernel memory is modified. A:H - __rxe_put() takes a general protection fault on 0x0006000000000150 in softirq ('Fatal exception in interrupt'), which panics even with panic_on_oops=0. Every such packet triggers it, so the host can be crashed on demand and repeatedly.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 8700e3e7c4857d28ebaa824509934556da0b3e76 to < 01b8c1cb0504b1f03850bf7b6a30c532508a4177 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 545ae9f2702c5ea6999c92558f5b0733f38fc83c (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < fc4959ae561c625f0960e526d9f5fcb11125249c (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 6b3dc360387a343fac825ae74da67de01a662cd8 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 9d370d6492653df247fe3df41d08a07792ae4cae (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 2c2e0650b71be23998d7370fc439f7a5ec0eab80 (affected · git)8700e3e7c4857d28ebaa824509934556da0b3e76 to < 7d7214b39b14c9763c14445b139f63369063b65e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.8 (affected)0 to < 4.8 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)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
8- https://git.kernel.org/stable/c/01b8c1cb0504b1f03850bf7b6a30c532508a4177
- https://git.kernel.org/stable/c/2c2e0650b71be23998d7370fc439f7a5ec0eab80
- https://git.kernel.org/stable/c/545ae9f2702c5ea6999c92558f5b0733f38fc83c
- https://git.kernel.org/stable/c/6b3dc360387a343fac825ae74da67de01a662cd8
- https://git.kernel.org/stable/c/7d7214b39b14c9763c14445b139f63369063b65e
- https://git.kernel.org/stable/c/9d370d6492653df247fe3df41d08a07792ae4cae
- https://git.kernel.org/stable/c/c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d
- https://git.kernel.org/stable/c/fc4959ae561c625f0960e526d9f5fcb11125249c
Provider assertions
1Linux · cna
RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 70cbb6111e34f08e243ec5bda5d38e9ea0d10e4504f13bcc8f94104c15e02b9c
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record