CVE-2024-35898 netfilter: nf_tables: Fix potential data-race in __nft_flowtable_type_get()
A data race in the Linux kernel netfilter subsystem can lead to undefined behavior when accessing flowtable types concurrently.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-35898?
CVE-2024-35898 is a high-severity vulnerability in Debian Debian Linux, published on 19 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
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.
Weakness: CWE-362
Which versions are affected by CVE-2024-35898?
It affects 2 products.
Products include Debian Debian Linux, Linux kernel.
How do I fix CVE-2024-35898?
Apply the vendor's patch.
Is CVE-2024-35898 being exploited?
There is no known exploitation of CVE-2024-35898 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as BELL-CVE-2024-35898, DEBIAN-CVE-2024-35898, GHSA-3qv4-3prp-9cv5, UBUNTU-CVE-2024-35898.