Commit 19a07a4
ndisc: extend RCU protection in ndisc_send_skb()
JIRA: https://issues.redhat.com/browse/RHEL-115578
CVE: CVE-2025-21760
commit ed6ae1f
Author: Eric Dumazet <edumazet@google.com>
Date: Fri Feb 7 13:58:39 2025 +0000
ndisc: extend RCU protection in ndisc_send_skb()
ndisc_send_skb() can be called without RTNL or RCU held.
Acquire rcu_read_lock() earlier, so that we can use dev_net_rcu()
and avoid a potential UAF.
Fixes: 1762f7e ("[NETNS][IPV6] ndisc - make socket control per namespace")
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-8-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: CKI Backport Bot <cki-ci-bot+cki-gitlab-backport-bot@redhat.com>1 parent c1d0fce commit 19a07a4
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
471 | 471 | | |
472 | 472 | | |
473 | 473 | | |
| 474 | + | |
474 | 475 | | |
475 | | - | |
476 | | - | |
477 | 476 | | |
| 477 | + | |
| 478 | + | |
478 | 479 | | |
479 | | - | |
480 | 480 | | |
481 | 481 | | |
482 | 482 | | |
483 | 483 | | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
484 | 488 | | |
485 | 489 | | |
486 | 490 | | |
487 | 491 | | |
488 | 492 | | |
489 | 493 | | |
490 | 494 | | |
| 495 | + | |
491 | 496 | | |
492 | 497 | | |
493 | 498 | | |
| |||
502 | 507 | | |
503 | 508 | | |
504 | 509 | | |
505 | | - | |
506 | 510 | | |
507 | 511 | | |
508 | 512 | | |
| |||
0 commit comments