CVE-2026-139355: RDMA/rxe: Hold netdev reference for transmit skbs
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rxe: Hold netdev reference for transmit skbs
rxeinitpacket() 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 devhold() when the skb is initialized and release it from the transmit destructor or via rxeputskb() on error paths that run before the destructor is installed.
skb->dev can change on the TX path (VLAN/bond/tunnel, ipfinishoutput2, etc.), so put must use the same netdev that was held. Stash that pointer in skbshinfo()->destructorarg: skb->cb is already used by rxepktinfo and is rewritten by IP control blocks.
To avoid blocking netdev unregistration on held skbs, flush all QPs to the error state on NETDEVGOINGDOWN and NETDEVUNREGISTER so pending TX work is drained and references can be dropped.