CVE-2024-43888·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: mm: list_lru: fix UAF for memory cgroup The mem_cgroup_from_slab_obj() is supposed to be called under rcu lock or cgroup_mutex or others which could prevent returned memcg from being freed. Fix it by adding missing rcu read lock. Found by code inspection. [songmuchun@bytedance.com: only grab rcu lock when necessary, per Vlastimil]
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.10.5
- Published
- 2024-08-26
Affected versions
From: 6.8
Until: 6.10.5
Fixed in: 6.10.5
How to fix this CVE
Update your Linux kernel to version 6.10.5 or later to patch a use-after-free vulnerability in the memory cgroup list management subsystem. This vulnerability can lead to memory corruption when the kernel's list_lru component accesses freed memory cgroup objects. Systems running kernel versions 6.8 through 6.10.4 should prioritize this update, particularly on servers with memory cgroup isolation enabled.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Check installed kernel version: uname -r — vulnerable if output shows 6.8 through 6.10.4
- Verify memory cgroup is mounted: cat /proc/mounts | grep cgroup2 — confirms potential exposure if cgroup2 is active
- Search kernel logs for memory corruption traces: sudo dmesg | grep -i 'use.after.free\|uaf\|memory.corruption' — look for UAF-related kernel warnings
- Confirm patch applied: cat /proc/version | grep -q '6.10.5' && echo 'Patched' || echo 'Vulnerable' — verify kernel is at or above 6.10.5
FAQ
What is CVE-2024-43888?
This is a use-after-free (UAF) vulnerability in the Linux kernel's memory cgroup list management code. The vulnerability occurs when the mem_cgroup_from_slab_obj() function is called without proper RCU (Read-Copy-Update) locking, allowing access to already-freed memory cgroup objects, potentially leading to kernel memory corruption and system instability.
Is CVE-2024-43888 being actively exploited?
No, there is no evidence that CVE-2024-43888 is actively exploited in the wild or included in public exploit databases. This vulnerability was discovered through code inspection rather than from active exploitation reports.
What versions of Kernel are affected by CVE-2024-43888?
Linux kernel versions 6.8 through 6.10.4 are affected. The vulnerability has been patched in kernel 6.10.5 and later releases.
How do I check if my server is vulnerable to CVE-2024-43888?
Run 'uname -r' and compare your kernel version against the vulnerable range (6.8 to 6.10.4). If your version falls within this range, your system requires immediate patching.
Does Defensia detect CVE-2024-43888?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Linux kernel is installed on a monitored server, CVE-2024-43888 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-43888. Free for 1 server.
Get started free