CVE-2025-38216
Unknown Unknown - Not Provided
BaseFortify

Publication date: 2025-07-04

Last updated on: 2025-11-18

Assigner: kernel.org

Description
In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Restore context entry setup order for aliased devices Commit 2031c469f816 ("iommu/vt-d: Add support for static identity domain") changed the context entry setup during domain attachment from a set-and-check policy to a clear-and-reset approach. This inadvertently introduced a regression affecting PCI aliased devices behind PCIe-to-PCI bridges. Specifically, keyboard and touchpad stopped working on several Apple Macbooks with below messages: kernel: platform pxa2xx-spi.3: Adding to iommu group 20 kernel: input: Apple SPI Keyboard as /devices/pci0000:00/0000:00:1e.3/pxa2xx-spi.3/spi_master/spi2/spi-APP000D:00/input/input0 kernel: DMAR: DRHD: handling fault status reg 3 kernel: DMAR: [DMA Read NO_PASID] Request device [00:1e.3] fault addr 0xffffa000 [fault reason 0x06] PTE Read access is not set kernel: DMAR: DRHD: handling fault status reg 3 kernel: DMAR: [DMA Read NO_PASID] Request device [00:1e.3] fault addr 0xffffa000 [fault reason 0x06] PTE Read access is not set kernel: applespi spi-APP000D:00: Error writing to device: 01 0e 00 00 kernel: DMAR: DRHD: handling fault status reg 3 kernel: DMAR: [DMA Read NO_PASID] Request device [00:1e.3] fault addr 0xffffa000 [fault reason 0x06] PTE Read access is not set kernel: DMAR: DRHD: handling fault status reg 3 kernel: applespi spi-APP000D:00: Error writing to device: 01 0e 00 00 Fix this by restoring the previous context setup order.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2025-07-04
Last Modified
2025-11-18
Generated
2026-05-07
AI Q&A
2025-07-04
EPSS Evaluated
2026-05-05
NVD
Affected Vendors & Products
Showing 2 associated CPEs
Vendor Product Version / Range
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
linux linux_kernel From 5.15.160 (inc) to 5.16 (inc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-NVD-CWE-noinfo
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?

This vulnerability is a regression in the Linux kernel's iommu/vt-d subsystem caused by a change in how context entries are set up during domain attachment. The change switched from a set-and-check policy to a clear-and-reset approach, which inadvertently broke support for PCI aliased devices behind PCIe-to-PCI bridges. As a result, certain devices like keyboards and touchpads on some Apple Macbooks stopped working, generating DMA read faults and device errors. The fix involved restoring the previous context setup order to resolve these issues.


How can this vulnerability impact me? :

This vulnerability can cause hardware devices such as keyboards and touchpads on affected Apple Macbooks to stop functioning properly. Users may experience input device failures and related error messages in the kernel logs, potentially impacting usability and system functionality on affected hardware configurations.


How can this vulnerability be detected on my network or system? Can you suggest some commands?

This vulnerability can be detected by checking system logs for specific error messages related to PCI aliased devices and IOMMU faults. Look for kernel log entries indicating DMA read faults and errors writing to Apple SPI devices, such as messages containing 'DMAR: DRHD: handling fault status reg 3', 'DMA Read NO_PASID', and 'Error writing to device'. Commands like 'dmesg | grep -i DMAR' or 'journalctl -k | grep -i DMAR' can help identify these errors.


What immediate steps should I take to mitigate this vulnerability?

The immediate mitigation is to apply the patch that restores the previous context entry setup order for aliased devices in the Linux kernel. This fix addresses the regression introduced by commit 2031c469f816. Until the patch is applied, affected devices such as keyboards and touchpads on certain Apple Macbooks may not function correctly.


Ask Our AI Assistant
Need more information? Ask your question to get an AI reply (Powered by our expertise)
0/70
EPSS Chart