CVE-2024-56669·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Remove cache tags before disabling ATS The current implementation removes cache tags after disabling ATS, leading to potential memory leaks and kernel crashes. Specifically, CACHE_TAG_DEVTLB type cache tags may still remain in the list even after the domain is freed, causing a use-after-free condition. This issue really shows up when multiple VFs from different PFs passed through to a single user-space process via vfio-pci. In such cases, the kernel may crash with kernel messages like: BUG: kernel NULL pointer dereference, address: 0000000000000014 PGD 19036a067 P4D 1940a3067 PUD 136c9b067 PMD 0 Oops: Oops: 0000 [#1] PREEMPT SMP NOPTI CPU: 74 UID: 0 PID: 3183 Comm: testCli Not tainted 6.11.9 #2 RIP: 0010:cache_tag_flush_range+0x9b/0x250 Call Trace: <TASK> ? __die+0x1f/0x60 ? page_fault_oops+0x163/0x590 ? exc_page_fault+0x72/0x190 ? asm_exc_page_fault+0x22/0x30 ? cache_tag_flush_range+0x9b/0x250 ? cache_tag_flush_range+0x5d/0x250 intel_iommu_tlb_sync+0x29/0x40 intel_iommu_unmap_pages+0xfe/0x160 __iommu_unmap+0xd8/0x1a0 vfio_unmap_unpin+0x182/0x340 [vfio_iommu_type1] vfio_remove_dma+0x2a/0xb0 [vfio_iommu_type1] vfio_iommu_type1_ioctl+0xafa/0x18e0 [vfio_iommu_type1] Move cache_tag_unassign_domain() before iommu_disable_pci_caps() to fix it.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.12.6
- Published
- 2024-12-27
Affected versions
From: 6.10
Until: 6.12.6
Fixed in: 6.12.6
How to fix this CVE
Update the Linux kernel to version 6.12.6 or later to resolve a use-after-free vulnerability in the VT-d IOMMU subsystem that can cause kernel crashes when multiple virtual functions are passed through via VFIO. The fix reorders cache tag cleanup operations to occur before disabling ATS, preventing dangling references to freed memory structures.
sudo dnf update kernel kernel-headersDefensia detects this vulnerability
How to check if you are affected
- Check your installed kernel version by running: uname -r (vulnerable if 6.10.x through 6.12.5)
- Verify if VT-d IOMMU and VFIO are enabled in your configuration: grep -E 'CONFIG_INTEL_IOMMU|CONFIG_VFIO' /boot/config-$(uname -r)
- Search system logs for the specific NULL pointer dereference in cache_tag_flush_range: sudo journalctl -b | grep -A5 'cache_tag_flush_range'
- After patching, reboot and confirm the new kernel version: uname -r (should show 6.12.6 or later)
FAQ
What is CVE-2024-56669?
This vulnerability affects the Intel VT-d IOMMU driver in the Linux kernel where cache tags for device TLB entries are removed after ATS is disabled, leaving dangling pointers that cause kernel panics when multiple PCIe virtual functions are passed to user-space applications via VFIO.
Is CVE-2024-56669 being actively exploited?
No, this CVE is not listed on the CISA Known Exploited Vulnerabilities catalog and no public exploits are available, though it can be triggered reliably in specific multi-VF passthrough scenarios.
What versions of Kernel are affected by CVE-2024-56669?
Linux kernel versions 6.10.0 through 6.12.5 are vulnerable; kernel 6.12.6 and later include the fix.
How do I check if my server is vulnerable to CVE-2024-56669?
Run 'uname -r' and verify the version is between 6.10 and 6.12.5; additionally confirm VT-d IOMMU support is enabled with 'grep CONFIG_INTEL_IOMMU /boot/config-$(uname -r)'.
Does Defensia detect CVE-2024-56669?
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-56669 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-56669. Free for 1 server.
Get started free