Vulnerability record
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
rxe_init_packet() 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 dev_hold() when the skb is initialized and release it from the transmit destructor or via rxe_put_skb() on error paths that run before the destructor is installed.
skb->dev can change on the TX path (VLAN/bond/tunnel, ip_finish_output2, etc.), so…
7/CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:HExploitability
AV:LAC:HPR:LUI:NScope
S:UImpact
C:HI:HA:HRemediation
No fixed version has been published for this vulnerability yet. Check the references below for vendor advisories, workarounds and mitigation guidance.
Sources