Commit 1221278
committed
ndisc: use RCU protection in ndisc_alloc_skb()
jira VULN-54026
cve CVE-2025-21764
commit-author Eric Dumazet <edumazet@google.com>
commit 628e6d1
ndisc_alloc_skb() can be called without RTNL or RCU being held.
Add RCU protection to avoid possible UAF.
Fixes: de09334 ("ndisc: Introduce ndisc_alloc_skb() helper.")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Reviewed-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250207135841.1948589-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 628e6d1)
Signed-off-by: Brett Mastbergen <bmastbergen@ciq.com>1 parent 0f91f77 commit 1221278
1 file changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
418 | 417 | | |
419 | 418 | | |
420 | 419 | | |
421 | | - | |
422 | | - | |
423 | | - | |
| 420 | + | |
424 | 421 | | |
425 | | - | |
426 | 422 | | |
427 | 423 | | |
428 | 424 | | |
| |||
433 | 429 | | |
434 | 430 | | |
435 | 431 | | |
436 | | - | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
437 | 435 | | |
438 | 436 | | |
439 | 437 | | |
| |||
0 commit comments