CVE-2024-56652·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: drm/xe/reg_sr: Remove register pool That pool implementation doesn't really work: if the krealloc happens to move the memory and return another address, the entries in the xarray become invalid, leading to use-after-free later: BUG: KASAN: slab-use-after-free in xe_reg_sr_apply_mmio+0x570/0x760 [xe] Read of size 4 at addr ffff8881244b2590 by task modprobe/2753 Allocated by task 2753: kasan_save_stack+0x39/0x70 kasan_save_track+0x14/0x40 kasan_save_alloc_info+0x37/0x60 __kasan_kmalloc+0xc3/0xd0 __kmalloc_node_track_caller_noprof+0x200/0x6d0 krealloc_noprof+0x229/0x380 Simplify the code to fix the bug. A better pooling strategy may be added back later if needed. (cherry picked from commit e5283bd4dfecbd3335f43b62a68e24dae23f59e4)
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.6
- Published
- 2024-12-27
Affected versions
From: 6.8
Until: 6.12.6
Fixed in: 6.12.6
How to fix this CVE
Update your Linux kernel to version 6.12.6 or later to resolve a use-after-free vulnerability in the DRM/XE graphics driver's register management code. This flaw can allow local privilege escalation when memory reallocation causes invalid pointer references in the register pool. Apply the kernel update immediately and reboot your system to activate the patch.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Check your kernel version: uname -r | grep -E '^(6\.(8|9|10|11|12\.[0-5]))'
- Verify if XE/DRM graphics drivers are loaded: lsmod | grep -i xe
- Search system logs for KASAN reports: dmesg | grep -i 'slab-use-after-free\|xe_reg_sr'
- Confirm the patch is applied: grep -i 'register pool' /boot/config-$(uname -r) || echo 'Verify kernel version with uname -r and compare against 6.12.6'
FAQ
What is CVE-2024-56652?
This is a use-after-free vulnerability in the Linux kernel's DRM/XE graphics subsystem where improper memory pool management causes invalid pointers to be referenced when krealloc relocates allocated memory, enabling local privilege escalation.
Is CVE-2024-56652 being actively exploited?
No, this vulnerability is not currently being actively exploited and no public exploits are available, though it poses a significant local privilege escalation risk for systems with XE graphics drivers loaded.
What versions of Kernel are affected by CVE-2024-56652?
Kernel versions 6.8 through 6.12.5 are vulnerable; version 6.12.6 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-56652?
Run 'uname -r' and verify your kernel version is earlier than 6.12.6, then check if XE drivers are active with 'lsmod | grep xe'—if both conditions are true, your system is vulnerable.
Does Defensia detect CVE-2024-56652?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-56652 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-56652. Free for 1 server.
Get started free