CVE-2024-27395·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: net: openvswitch: Fix Use-After-Free in ovs_ct_exit 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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.8.9
- Published
- 2024-05-14
Affected versions
From: 6.7
Until: 6.8.9
Fixed in: 6.8.9
How to fix this CVE
Update your Linux kernel to version 6.8.9 or later to patch a use-after-free vulnerability in the Open vSwitch connection tracking module. This vulnerability could allow a local attacker with user-level privileges to corrupt kernel memory or cause a denial of service. Apply the patch immediately if you run Open vSwitch workloads on affected kernel versions between 6.7 and 6.8.8.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your installed kernel version with 'uname -r' and verify if it falls within 6.7-6.8.8 range
- Step 2: Confirm Open vSwitch is installed and running with 'systemctl status openvswitch-switch' or 'systemctl status ovs-vswitchd'
- Step 3: Search kernel logs for memory corruption or NULL pointer dereference errors using 'sudo dmesg | grep -i 'use-after-free\|ovs_ct_limit\|kfree_rcu'
- Step 4: After patching, reboot the system and verify the new kernel version is active with 'uname -r' to confirm the fix
FAQ
What is CVE-2024-27395?
This vulnerability is a use-after-free bug in the Linux kernel's Open vSwitch connection tracking module, where improper RCU synchronization during hash table traversal can cause a freed memory object to be accessed, leading to kernel memory corruption or system crashes.
Is CVE-2024-27395 being actively exploited?
No, this vulnerability is not listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are currently available.
What versions of Kernel are affected by CVE-2024-27395?
Linux kernel versions 6.7 through 6.8.8 are affected; kernel 6.8.9 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-27395?
Run 'uname -r' to check your kernel version. If the output shows a version from 6.7 to 6.8.8 and you have Open vSwitch running, your system is vulnerable.
Does Defensia detect CVE-2024-27395?
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-27395 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2db9a8c0a01fa1c762c1e61a13c212c492752994
- https://git.kernel.org/stable/c/35880c3fa6f8fe281a19975d2992644588ca33d3
- https://git.kernel.org/stable/c/589523cf0b384164e445dd5db8d5b1bf97982424
- https://git.kernel.org/stable/c/5ea7b72d4fac2fdbc0425cd8f2ea33abe95235b2
- https://git.kernel.org/stable/c/9048616553c65e750d43846f225843ed745ec0d4
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-27395. Free for 1 server.
Get started free