Commit 17f8ba3
CIQ Kernel Automation
geneve: Suppress list corruption splat in geneve_destroy_tunnels().
jira VULN-55939
cve-bf CVE-2025-21858
commit-author Kuniyuki Iwashima <kuniyu@amazon.com>
commit 62fab6e
As explained in the previous patch, iterating for_each_netdev() and
gn->geneve_list during ->exit_batch_rtnl() could trigger ->dellink()
twice for the same device.
If CONFIG_DEBUG_LIST is enabled, we will see a list_del() corruption
splat in the 2nd call of geneve_dellink().
Let's remove for_each_netdev() in geneve_destroy_tunnels() and delegate
that part to default_device_exit_batch().
Fixes: 9593172 ("geneve: Fix use-after-free in geneve_find_dev().")
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Link: https://patch.msgid.link/20250217203705.40342-3-kuniyu@amazon.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
(cherry picked from commit 62fab6e)
Signed-off-by: CIQ Kernel Automation <ciq_kernel_automation@ciq.com>1 parent e8fcb6d commit 17f8ba3
1 file changed
Lines changed: 0 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1918 | 1918 | | |
1919 | 1919 | | |
1920 | 1920 | | |
1921 | | - | |
1922 | 1921 | | |
1923 | | - | |
1924 | | - | |
1925 | | - | |
1926 | | - | |
1927 | | - | |
1928 | | - | |
1929 | 1922 | | |
1930 | 1923 | | |
1931 | 1924 | | |
| |||
0 commit comments