Commit 8a1a728
committed
ipv6: mcast: extend RCU protection in igmp6_send()
jira LE-3519
cve CVE-2025-21759
Rebuild_History Non-Buildable kernel-5.14.0-570.25.1.el9_6
commit-author Eric Dumazet <[email protected]>
commit 087c1fa
igmp6_send() can be called without RTNL or RCU being held.
Extend RCU protection so that we can safely fetch the net pointer
and avoid a potential UAF.
Note that we no longer can use sock_alloc_send_skb() because
ipv6.igmp_sk uses GFP_KERNEL allocations which can sleep.
Instead use alloc_skb() and charge the net->ipv6.igmp_sk
socket under RCU protection.
Fixes: b8ad0cb ("[NETNS][IPV6] mcast - handle several network namespace")
Signed-off-by: Eric Dumazet <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Reviewed-by: Kuniyuki Iwashima <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
(cherry picked from commit 087c1fa)
Signed-off-by: Jonathan Maple <[email protected]>1 parent cce9660 commit 8a1a728
1 file changed
+15
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2125 | 2125 | | |
2126 | 2126 | | |
2127 | 2127 | | |
2128 | | - | |
2129 | | - | |
| 2128 | + | |
| 2129 | + | |
| 2130 | + | |
2130 | 2131 | | |
2131 | 2132 | | |
2132 | 2133 | | |
2133 | | - | |
2134 | | - | |
2135 | 2134 | | |
2136 | 2135 | | |
2137 | | - | |
2138 | 2136 | | |
2139 | 2137 | | |
2140 | 2138 | | |
2141 | | - | |
2142 | 2139 | | |
| 2140 | + | |
| 2141 | + | |
| 2142 | + | |
2143 | 2143 | | |
2144 | 2144 | | |
2145 | 2145 | | |
| |||
2150 | 2150 | | |
2151 | 2151 | | |
2152 | 2152 | | |
2153 | | - | |
2154 | | - | |
2155 | | - | |
| 2153 | + | |
2156 | 2154 | | |
2157 | | - | |
| 2155 | + | |
2158 | 2156 | | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
2159 | 2160 | | |
2160 | | - | |
2161 | | - | |
2162 | | - | |
| 2161 | + | |
2163 | 2162 | | |
2164 | 2163 | | |
2165 | 2164 | | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
2166 | 2168 | | |
2167 | 2169 | | |
2168 | 2170 | | |
| |||
2187 | 2189 | | |
2188 | 2190 | | |
2189 | 2191 | | |
2190 | | - | |
2191 | | - | |
2192 | | - | |
2193 | 2192 | | |
2194 | 2193 | | |
2195 | 2194 | | |
| |||
0 commit comments