CVE-2024-39494·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: ima: Fix use-after-free on a dentry's dname.name ->d_name.name can change on rename and the earlier value can be freed; there are conditions sufficient to stabilize it (->d_lock on dentry, ->d_lock on its parent, ->i_rwsem exclusive on the parent's inode, rename_lock), but none of those are met at any of the sites. Take a stable snapshot of the name instead.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.6
- Published
- 2024-07-12
Affected versions
From: 6.7
Until: 6.9.6
Fixed in: 6.9.6
How to fix this CVE
A use-after-free vulnerability exists in the Linux kernel's IMA (Integrity Measurement Architecture) subsystem where directory entry names can be accessed after being freed during rename operations. Update your kernel to version 6.9.6 or later to resolve this memory safety issue and prevent potential privilege escalation attacks.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with: uname -r
- Step 2: Verify if IMA is enabled with: cat /boot/config-$(uname -r) | grep CONFIG_IMA
- Step 3: Search system logs for IMA-related errors using: grep -i 'ima' /var/log/kern.log | grep -i 'error\|warning'
- Step 4: After patching, confirm the new kernel version loaded with: uname -r and verify it is 6.9.6 or later
FAQ
What is CVE-2024-39494?
This vulnerability is a use-after-free flaw in the Linux kernel's IMA subsystem where directory entry name pointers are dereferenced after the underlying memory has been freed during file rename operations, potentially allowing local privilege escalation.
Is CVE-2024-39494 being actively exploited?
No, this CVE is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available, though the high CVSS score reflects its serious nature.
What versions of Kernel are affected by CVE-2024-39494?
Linux kernel versions 6.7.0 through 6.9.5 are vulnerable; the fix is included in kernel 6.9.6 and later stable releases.
How do I check if my server is vulnerable to CVE-2024-39494?
Run: uname -r to check your kernel version. If it is between 6.7.0 and 6.9.5 inclusive AND IMA is enabled (cat /boot/config-$(uname -r) | grep CONFIG_IMA shows yes), your system is vulnerable.
Does Defensia detect CVE-2024-39494?
Yes — Defensia's CVE advisory scanner compares installed kernel versions against the NVD database. If a vulnerable kernel version is detected on a monitored server, CVE-2024-39494 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0b31e28fbd773aefb6164687e0767319b8199829
- https://git.kernel.org/stable/c/480afcbeb7aaaa22677d3dd48ec590b441eaac1a
- https://git.kernel.org/stable/c/7fb374981e31c193b1152ed8d3b0a95b671330d4
- https://git.kernel.org/stable/c/a78a6f0da57d058e2009e9958fdcef66f165208c
- https://git.kernel.org/stable/c/be84f32bb2c981ca670922e047cdde1488b233de
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-39494. Free for 1 server.
Get started free