CVE-2024-27020·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_tables: Fix potential data-race in __nft_expr_type_get() nft_unregister_expr() can concurrent with __nft_expr_type_get(), and there is not any protection when iterate over nf_tables_expressions list in __nft_expr_type_get(). Therefore, there is potential data-race of nf_tables_expressions list entry. Use list_for_each_entry_rcu() to iterate over nf_tables_expressions list in __nft_expr_type_get(), and use rcu_read_lock() in the caller nft_expr_type_get() to protect the entire type query process.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.8
- Published
- 2024-05-01
Affected versions
From: 6.7
Until: 6.8.8
Fixed in: 6.8.8
How to fix this CVE
Update your Linux kernel to version 6.8.8 or later to resolve a critical race condition in the netfilter nf_tables subsystem. This vulnerability allows concurrent access to expression type registration without proper synchronization, potentially leading to memory corruption or privilege escalation. Apply the kernel update immediately and reboot your system to ensure the fix is active.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version by running: uname -r
- Step 2: Verify if your kernel version is between 6.7 and 6.8.7 (vulnerable range) by comparing against the output from step 1
- Step 3: Confirm netfilter nf_tables is loaded with: lsmod | grep nf_tables
- Step 4: After patching, reboot and verify the new kernel version is active with: uname -r (should be 6.8.8 or later)
FAQ
What is CVE-2024-27020?
CVE-2024-27020 is a race condition in the Linux kernel's netfilter nf_tables subsystem where unregistration of expression types can race with concurrent lookups, bypassing synchronization mechanisms and potentially causing data corruption or privilege escalation.
Is CVE-2024-27020 being actively exploited?
No, CVE-2024-27020 is not currently listed in CISA's Known Exploited Vulnerabilities catalog and no public exploit code has been released, though the vulnerability carries high severity due to its local privilege escalation potential.
What versions of Kernel are affected by CVE-2024-27020?
Linux kernel versions 6.7 through 6.8.7 are vulnerable. All users running kernels in this range should upgrade to 6.8.8 or later immediately.
How do I check if my server is vulnerable to CVE-2024-27020?
Run 'uname -r' to display your kernel version. If the output shows version 6.7.x or 6.8.x (up to 6.8.7), your system is vulnerable and requires a kernel update.
Does Defensia detect CVE-2024-27020?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2024-27020 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/01f1a678b05ade4b1248019c2dcca773aebbeb7f
- https://git.kernel.org/stable/c/0b6de00206adbbfc6373b3ae38d2a6f197987907
- https://git.kernel.org/stable/c/8d56bad42ac4c43c6c72ddd6a654a2628bf839c5
- https://git.kernel.org/stable/c/934e66e231cff2b18faa2c8aad0b8cec13957e05
- https://git.kernel.org/stable/c/939109c0a8e2a006a6cc8209e262d25065f4403a
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-27020. Free for 1 server.
Get started free