CVE-2024-41049·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: filelock: fix potential use-after-free in posix_lock_inode Light Hsieh reported a KASAN UAF warning in trace_posix_lock_inode(). The request pointer had been changed earlier to point to a lock entry that was added to the inode's list. However, before the tracepoint could fire, another task raced in and freed that lock. Fix this by moving the tracepoint inside the spinlock, which should ensure that this doesn't happen.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.9.10
- Published
- 2024-07-29
Affected versions
From: 6.7
Until: 6.9.10
Fixed in: 6.9.10
How to fix this CVE
Update the Linux kernel to version 6.9.10 or later to resolve a use-after-free vulnerability in the file locking subsystem. This vulnerability could allow a local attacker with limited privileges to trigger a kernel panic or potentially execute arbitrary code by exploiting a race condition in posix_lock_inode(). Apply the kernel update immediately through your distribution's package manager and reboot your system.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your current kernel version with 'uname -r' and compare against 6.9.10; versions 6.7.x through 6.9.9 are vulnerable
- Step 2: Verify the filelock module is in use by running 'grep -i filelock /proc/modules' or check for POSIX lock activity with 'lslocks'
- Step 3: Search kernel logs for UAF (use-after-free) warnings with 'sudo dmesg | grep -i 'use-after-free\|kasan\|posix_lock' and check syslog for any lock-related panics
- Step 4: After patching, reboot the system and confirm 'uname -r' shows 6.9.10 or later, then verify no UAF warnings appear in fresh kernel logs
FAQ
What is CVE-2024-41049?
This is a use-after-free vulnerability in the Linux kernel's file locking mechanism where a tracepoint references a lock object that may have been freed by another thread, potentially causing a kernel crash or code execution under specific race conditions.
Is CVE-2024-41049 being actively exploited?
No, CVE-2024-41049 is not listed in CISA's Known Exploited Vulnerabilities catalog and no public exploits are currently available, though the vulnerability requires privileged local access to trigger.
What versions of Kernel are affected by CVE-2024-41049?
Linux kernel versions 6.7 through 6.9.9 are vulnerable; version 6.9.10 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-41049?
Run 'uname -r' to display your kernel version; if it shows 6.7.x, 6.8.x, or 6.9.x below 6.9.10, your system is vulnerable and requires an update.
Does Defensia detect CVE-2024-41049?
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-41049 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/02a8964260756c70b20393ad4006948510ac9967
- https://git.kernel.org/stable/c/116599f6a26906cf33f67975c59f0692ecf7e9b2
- https://git.kernel.org/stable/c/1b3ec4f7c03d4b07bad70697d7e2f4088d2cfe92
- https://git.kernel.org/stable/c/1cbbb3d9475c403ebedc327490c7c2b991398197
- https://git.kernel.org/stable/c/432b06b69d1d354a171f7499141116536579eb6a
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-41049. Free for 1 server.
Get started free