CVE-2024-35898
MEDIUMLinux Kernel < 4.19.312 - Race Condition
Title source: ruleDescription
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get() nft_unregister_flowtable_type() within nf_flow_inet_module_exit() can concurrent with __nft_flowtable_type_get() within nf_tables_newflowtable(). And thhere is not any protection when iterate over nf_tables_flowtables list in __nft_flowtable_type_get(). Therefore, there is pertential data-race of nf_tables_flowtables list entry. Use list_for_each_entry_rcu() to iterate over nf_tables_flowtables list in __nft_flowtable_type_get(), and use rcu_read_lock() in the caller nft_flowtable_type_get() to protect the entire type query process.
References (10)
Scores
CVSS v3
5.5
EPSS
0.0001
EPSS Percentile
1.0%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Classification
CWE
CWE-362
Status
published
Affected Products (11)
linux/linux_kernel
< 4.19.312
linux/linux_kernel
linux/linux_kernel
debian/debian_linux
linux/Kernel
< 4.19.312linux
linux/Kernel
< 5.4.274linux
linux/Kernel
< 5.10.215linux
linux/Kernel
< 5.15.154linux
linux/Kernel
< 6.1.85linux
linux/Kernel
< 6.6.26linux
linux/Kernel
< 6.8.5linux
Timeline
Published
May 19, 2024
Tracked Since
Feb 18, 2026