AZL-117088: CVE-2026-139355 affecting package kernel 6.6.161.1-1
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In RDMA/rxe, hold a netdev reference with dev_hold() when initializing transmit skbs, stash the referenced netdev in skb_shinfo()->destructor_arg, and release that same netdev with dev_put() from the transmit destructor or error path. On NETDEV_GOING_DOWN and NETDEV_UNREGISTER, flush QPs so pending TX work is drained before references are dropped.
Event History
Frequently Asked Questions
What conditions are required for this issue to occur?
The issue requires RDMA rxe transmit activity where a packet's device is taken from an RCU-protected GID attribute, followed by unregistration of that network device before the packet is freed. The unsafe access occurs when later processing accesses skb->dev after the device has been unregistered.
Which network-device events are relevant to exposure?
The relevant events are NETDEV_GOING_DOWN and NETDEV_UNREGISTER while rxe transmit work remains pending. The resolution drains pending transmit work by flushing queue pairs to the error state during those events, allowing held device references to be released.