CVE-2026-139288
RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()
Check your servers for CVE-2026-139288
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-139288 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- network: an attacker can reach the vulnerable part over the network, often from the internet
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.72%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 55.3% of all scored CVEs. Scores of 1 Dec 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8700e3e7c4857d28ebaa824509934556da0b3e76, before 01b8c1cb0504b1f03850bf7b6a30c532508a4177 affected from 8700e3e7c4857d28ebaa824509934556da0b3e76, before 545ae9f2702c5ea6999c92558f5b0733f38fc83c affected from 8700e3e7c4857d28ebaa824509934556da0b3e76, before fc4959ae561c625f0960e526d9f5fcb11125249c affected from 8700e3e7c4857d28ebaa824509934556da0b3e76, before 6b3dc360387a343fac825ae74da67de01a662cd8 affected from 8700e3e7c4857d28ebaa824509934556da0b3e76, before 9d370d6492653df247fe3df41d08a07792ae4cae affected from 8700e3e7c4857d28ebaa824509934556da0b3e76, before c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d affected from 8700e3e7c4857d28ebaa824509934556da0b3e76, before 2c2e0650b71be23998d7370fc439f7a5ec0eab80 affected from 8700e3e7c4857d28ebaa824509934556da0b3e76, before 7d7214b39b14c9763c14445b139f63369063b65e
Other versions: unaffected
|
| Linux |
affected 4.8 unaffected before 4.8 unaffected from 5.10.275 up to and including 5.10.* unaffected from 5.15.226 up to and including 5.15.* unaffected from 6.1.193 up to and including 6.1.* unaffected from 6.6.163 up to and including 6.6.* unaffected from 6.12.119 up to and including 6.12.* unaffected from 6.18.65 up to and including 6.18.* unaffected from 7.3.6 up to and including 7.3.* unaffected 7.4-rc1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-139288 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-139288
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-139288
trivy image --scanners vuln IMAGE | grep CVE-2026-139288
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/01b8c1cb0504b1f03850bf7b6a30c532508a4177 git.kernel.org
- https://git.kernel.org/stable/c/545ae9f2702c5ea6999c92558f5b0733f38fc83c git.kernel.org
- https://git.kernel.org/stable/c/fc4959ae561c625f0960e526d9f5fcb11125249c git.kernel.org
- https://git.kernel.org/stable/c/6b3dc360387a343fac825ae74da67de01a662cd8 git.kernel.org
- https://git.kernel.org/stable/c/9d370d6492653df247fe3df41d08a07792ae4cae git.kernel.org
- https://git.kernel.org/stable/c/c8b2b063f7bf0f9e5cc272b61db79a9525f9f97d git.kernel.org
- https://git.kernel.org/stable/c/2c2e0650b71be23998d7370fc439f7a5ec0eab80 git.kernel.org
- https://git.kernel.org/stable/c/7d7214b39b14c9763c14445b139f63369063b65e git.kernel.org
Source: the record CVE-2026-139288 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse