CVE-2026-139288: RDMA/rxe: Clear pkt->qp before the early drop exits in rxe_rcv()

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

RDMA/rxe: Clear pkt->qp before the early drop exits in rxercv()

rxercv() 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 < RXEBTHBYTES)) goto drop;

if (rxechkdgid(rxe, skb) < 0) goto drop;

pkt->opcode = bthopcode(pkt); pkt->psn = bthpsn(pkt); pkt->qp = NULL; <- too late for the gotos above ... drop: if (pkt->qp) rxeput(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, ip6rcvcore() memsets inet6skbparm 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 rxeput() runs refcountdecandtest() 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:rxeput+0x.../... Call Trace: <IRQ> rxercv+0x.../... [rdmarxe] rxeudpencaprecv+0x.../... [rdmarxe] udpqueuercvoneskb ... Kernel panic - not syncing: Fatal exception in interrupt

The fault happens in softirq, so it panics even with paniconoops=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 initnet.

IPv4 is not affected: iprcvcore() memsets the whole inetskbparm, 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 hdrcheck() and rxercvmcastpkt(), 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 rxeudpencaprecv(), 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.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In rxe_rcv(), clear pkt->qp before the first early-exit checks so the drop path cannot use an uninitialized value.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:33 PM
Data Sourced
via MITRE·01:33 PM
Description

Frequently Asked Questions

1

Which systems are exposed to the described crash condition?

Systems using the Linux kernel RDMA/rxe receive path are implicated. The described trigger is an IPv6 datagram sent to port 4791 with a payload shorter than the BTH header.

2

What does an attacker need to send to trigger the issue?

The described path requires a malformed or undersized IPv6 datagram to port 4791. No authentication requirement or local access prerequisite is stated in the available data.

3

How might an affected system present the failure?

The kernel can fault in softirq context when rxe_put() operates on an uninitialized pkt->qp value. The description gives an example of a general protection fault for a non-canonical address, including 0x0006000000000150.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203