CVE-2024-27079 iommu/vt-d: Fix NULL domain on device release
A NULL pointer dereference in the Linux kernel IOMMU driver causes a crash during device release in kdump kernels, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-27079?
CVE-2024-27079 is a medium-severity vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
iommu/vt-d: Fix NULL domain on device release
In the kdump kernel, the IOMMU operates in deferred_attach mode. In this mode, info->domain may not yet be assigned by the time the release_device function is called. It leads to the following crash in the crash kernel:
BUG: kernel NULL pointer dereference, address: 000000000000003c ... RIP: 0010:do_raw_spin_lock+0xa/0xa0 ... _raw_spin_lock_irqsave+0x1b/0x30 intel_iommu_release_device+0x96/0x170 iommu_deinit_device+0x39/0xf0 __iommu_group_remove_device+0xa0/0xd0 iommu_bus_notifier+0x55/0xb0 notifier_call_chain+0x5a/0xd0 blocking_notifier_call_chain+0x41/0x60 bus_notify+0x34/0x50 device_del+0x269/0x3d0 pci_remove_bus_device+0x77/0x100 p2sb_bar+0xae/0x1d0 ... i801_probe+0x423/0x740
Use the release_domain mechanism to fix it. The scalable mode context entry which is not part of release domain should be cleared in release_device().
Weakness: CWE-476
Which versions are affected by CVE-2024-27079?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-27079?
Apply the vendor's patch.
Is CVE-2024-27079 being exploited?
There is no known exploitation of CVE-2024-27079 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-57758, BELL-CVE-2024-27079, DEBIAN-CVE-2024-27079, GHSA-gwcp-9x74-j757, ROOT-OS-DEBIAN-12-CVE-2024-27079, UBUNTU-CVE-2024-27079.