Linux
ip: orphan prefetched skbs before multicast forwarding
In the Linux kernel, the following vulnerability has been resolved: ip: orphan prefetched skbs before multicast forwarding IPv4 and IPv6 input preserve an skb->sk association installed by bpf_sk_assign() so that local delivery can use the selected socket under RCU. Both address families can also prefetch a socket in UDP early demux. In both paths (BPF and UDP early demux) a reference is not guaranteed to be held on the socket. When a multicast packet is not locally deliverable, IPv6 hands the original skb to ip6_mr_input(). IPv4's ip_mr_input() similarly keeps the original skb when local delivery is not needed. Either path can put the skb on an unresolved multicast route queue or forward it after the receive-side RCU section ends. After the prefetched socket is destroyed, a later skb free invokes sock_pfree() and dereferences the stale skb->sk. Orphan the skb before each non-local multicast forwarding path. Local delivery retains the original skb; the existing skb_clone() calls provide multicast forwarding with a socket-free clone.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449, < 592b91f41d4f35e37c9e0be1c46a4c28437642cd
- >= cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449, < 882212d317a7c16ab70d20656f6b1c42abada9f6
- >= cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449, < e62aef7d6a5b27569bf540bbe11a9482117ff588
- >= cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449, < a8af6fbac895f057c4b8ff8a2e3fb4c5827fe4ce
- >= cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449, < f1281d4b99089fbaf0d3579bba62a814ebb4de4d
- >= cf7fbe660f2dbd738ab58aea8e9b0ca6ad232449, < e36ce6e78fe3fc3c071a26750783b7ba081ce10d
Fixed in 592b91f41d4f35e37c9e0be1c46a4c28437642cd, 882212d317a7c16ab70d20656f6b1c42abada9f6, e62aef7d6a5b27569bf540bbe11a9482117ff588, a8af6fbac895f057c4b8ff8a2e3fb4c5827fe4ce, f1281d4b99089fbaf0d3579bba62a814ebb4de4d, e36ce6e78fe3fc3c071a26750783b7ba081ce10d
- 5.7
Fixed in 0, 6.1.191, 6.6.160, 6.12.111, 6.18.50, 7.2.4, 7.3
Mitigation
Upgrade Linux to 592b91f41d4f35e37c9e0be1c46a4c28437642cd or 882212d317a7c16ab70d20656f6b1c42abada9f6 or e62aef7d6a5b27569bf540bbe11a9482117ff588 or a8af6fbac895f057c4b8ff8a2e3fb4c5827fe4ce or f1281d4b99089fbaf0d3579bba62a814ebb4de4d or e36ce6e78fe3fc3c071a26750783b7ba081ce10d or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.111 or 6.18.50 or 7.2.4 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.