Commit 999c5b6
ipv6: fix possible infinite loop in fib6_info_uses_dev()
JIRA: https://issues.redhat.com/browse/RHEL-115578
CVE: CVE-2025-38587
commit f8d8ce1
Author: Eric Dumazet <edumazet@google.com>
Date: Fri Jul 25 14:07:24 2025 +0000
ipv6: fix possible infinite loop in fib6_info_uses_dev()
fib6_info_uses_dev() seems to rely on RCU without an explicit
protection.
Like the prior fix in rt6_nlmsg_size(),
we need to make sure fib6_del_route() or fib6_add_rt2node()
have not removed the anchor from the list, or we risk an infinite loop.
Fixes: d9ccb18 ("ipv6: Fix soft lockups in fib6_select_path under high next hop churn")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250725140725.3626540-4-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 ffa319e commit 999c5b6
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5875 | 5875 | | |
5876 | 5876 | | |
5877 | 5877 | | |
5878 | | - | |
5879 | | - | |
| 5878 | + | |
| 5879 | + | |
5880 | 5880 | | |
5881 | | - | |
5882 | | - | |
5883 | | - | |
| 5881 | + | |
| 5882 | + | |
| 5883 | + | |
| 5884 | + | |
| 5885 | + | |
5884 | 5886 | | |
| 5887 | + | |
| 5888 | + | |
| 5889 | + | |
5885 | 5890 | | |
| 5891 | + | |
5886 | 5892 | | |
5887 | | - | |
5888 | 5893 | | |
5889 | 5894 | | |
5890 | 5895 | | |
| |||
0 commit comments