Commit 26e9c36
committed
net: openvswitch: Fix Use-After-Free in ovs_ct_exit
jira LE-1907
cve CVE-2024-27395
Rebuild_History Non-Buildable kernel-4.18.0-553.16.1.el8_10
commit-author Hyunwoo Kim <[email protected]>
commit 5ea7b72
Since kfree_rcu, which is called in the hlist_for_each_entry_rcu traversal
of ovs_ct_limit_exit, is not part of the RCU read critical section, it
is possible that the RCU grace period will pass during the traversal and
the key will be free.
To prevent this, it should be changed to hlist_for_each_entry_safe.
Fixes: 11efd5c ("openvswitch: Support conntrack zone limit")
Signed-off-by: Hyunwoo Kim <[email protected]>
Reviewed-by: Eric Dumazet <[email protected]>
Reviewed-by: Aaron Conole <[email protected]>
Link: https://lore.kernel.org/r/ZiYvzQN/Ry5oeFQW@v4bel-B760M-AORUS-ELITE-AX
Signed-off-by: Jakub Kicinski <[email protected]>
(cherry picked from commit 5ea7b72)
Signed-off-by: Jonathan Maple <[email protected]>1 parent d8ea396 commit 26e9c36
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1916 | 1916 | | |
1917 | 1917 | | |
1918 | 1918 | | |
| 1919 | + | |
1919 | 1920 | | |
1920 | | - | |
1921 | | - | |
| 1921 | + | |
1922 | 1922 | | |
1923 | 1923 | | |
1924 | 1924 | | |
| |||
0 commit comments