# CVE-2025-38216: iommu/vt-d: Restore context entry setup order for aliased devices

- Severity: High 8.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-07-04T13:37:33.906Z
- Modified: 2026-10-15T22:18:35.673Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2031c469f8161abe74189cb74f50da224f340b71 before fb5873b779dd5858123c19bbd6959566771e2e83; from 2031c469f8161abe74189cb74f50da224f340b71 before d43c81b691813e16a2d08208ce8947aebdab83cd; from 2031c469f8161abe74189cb74f50da224f340b71 before 320302baed05c6456164652541f23d2a96522c06; 6.12 (not affected: before 6.12; from 6.12.35 up to 6.12.*; from 6.15.4 up to 6.15.*; from 6.16 up to *)
- linux linux_kernel: from 6.12 before 6.12.35; from 6.13 before 6.15.4

## Every score

- Linux: CVSS:3.1 8.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/fb5873b779dd5858123c19bbd6959566771e2e83> (patch)
- <https://git.kernel.org/stable/c/d43c81b691813e16a2d08208ce8947aebdab83cd> (patch)
- <https://git.kernel.org/stable/c/320302baed05c6456164652541f23d2a96522c06> (patch)

## Sources

- CVE List: [CVE-2025-38216](https://www.cve.org/CVERecord?id=CVE-2025-38216), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38216](https://nvd.nist.gov/vuln/detail/CVE-2025-38216), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38216 · Whole record: https://cve.day/CVE-2025-38216.json · Rebuilt by cve.day 2026-11-25T22:59:00.649Z
