CVE-2024-27019 netfilter: nf_tables: Fix potential data-race in __nft_obj_type_get()
A data race in the Linux kernel netfilter subsystem can lead to undefined behavior during object type lookups, requiring a kernel patch.
- 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-27019?
CVE-2024-27019 is a high-severity vulnerability in Fedoraproject Fedora, published on 1 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_obj_type_get()
nft_unregister_obj() can concurrent with __nft_obj_type_get(), and there is not any protection when iterate over nf_tables_objects list in __nft_obj_type_get(). Therefore, there is potential data-race of nf_tables_objects list entry.
Use list_for_each_entry_rcu() to iterate over nf_tables_objects list in __nft_obj_type_get(), and use rcu_read_lock() in the caller nft_obj_type_get() to protect the entire type query process.
Weakness: CWE-362
Which versions are affected by CVE-2024-27019?
It affects 2 products.
Products include Fedoraproject Fedora, Linux kernel.
How do I fix CVE-2024-27019?
Apply the vendor's patch.
Is CVE-2024-27019 being exploited?
There is no known exploitation of CVE-2024-27019 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as AZL-42214, BELL-CVE-2024-27019, DEBIAN-CVE-2024-27019, GHSA-7fqw-qhgj-3c8c, UBUNTU-CVE-2024-27019.