CVE-2025-38062
Last modified
CVE-2025-38062 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: genirq/msi: Store the IOMMU IOVA directly in msi_desc instead of iommu_cookie The IOMMU translation for MSI message addresses has been a 2-step process, separated in time: 1) iommu_dma_prepare_msi(): A cookie pointer containing the IOVA address is stored in the MSI descriptor when an MSI interrupt is allocated. 2) iommu_dma_compose_msi_msg(): this cookie pointer is used to compute a translated message address. This has an inherent lifetime problem for the pointer stored in the cookie that must remain valid between the two steps. However, there is no locking at the irq layer that helps protect the lifetime. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: genirq/msi: Store the IOMMU IOVA directly in msi_desc instead of iommu_cookie The IOMMU translation for MSI message addresses has been a 2-step process, separated in time: 1) iommu_dma_prepare_msi(): A cookie pointer containing the IOVA address is stored in the MSI descriptor when an MSI interrupt is allocated. 2) iommu_dma_compose_msi_msg(): this cookie pointer is used to compute a translated message address. This has an inherent lifetime problem for the pointer stored in the cookie that must remain valid between the two steps. However, there is no locking at the irq layer that helps protect the lifetime. Today, this works under the assumption that the iommu domain is not changed while MSI interrupts being programmed. This is true for normal DMA API users within the kernel, as the iommu domain is attached before the driver is probed and cannot be changed while a driver is attached. Classic VFIO type1 also prevented changing the iommu domain while VFIO was running as it does not support changing the "container" after starting up. However, iommufd has improved this so that the iommu domain can be changed during VFIO operation. This potentially allows userspace to directly race VFIO_DEVICE_ATTACH_IOMMUFD_PT (which calls iommu_attach_group()) and VFIO_DEVICE_SET_IRQS (which calls into iommu_dma_compose_msi_msg()). This potentially causes both the cookie pointer and the unlocked call to iommu_get_domain_for_dev() on the MSI translation path to become UAFs. Fix the MSI cookie UAF by removing the cookie pointer. The translated IOVA address is already known during iommu_dma_prepare_msi() and cannot change. Thus, it can simply be stored as an integer in the MSI descriptor. The other UAF related to iommu_get_domain_for_dev() will be addressed in patch "iommu: Make iommu_dma_prepare_msi() into a generic operation" by using the IOMMU group mutex.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 5.2, < 6.1.141 |
| Linux | Linux Kernel | >= 6.2, < 6.6.93 |
| Linux | Linux Kernel | >= 6.7, < 6.12.31 |
| Linux | Linux Kernel | >= 6.13, < 6.14.9 |
| Debian | Debian Linux | 11.0 |
References
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlThird Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2025-38062?
How severe is CVE-2025-38062?
How do I fix CVE-2025-38062?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2025
- CVE-2025-38057In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38058In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38059In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-3806A vulnerability, which was classified as problematic, has be…4.8
- CVE-2025-38060In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38061In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38063In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38064In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38065In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38066In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38067In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2025-38068In the Linux kernel, the following vulnerability has been re…7.8
Are you affected by CVE-2025-38062?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
