iommu/amd: Force device table to maximum size
NIST has received this entry but not started reviewing it.
In the Linux kernel, the following vulnerability has been resolved: iommu/amd: Force device table to maximum size IOMMU can perform out-of-bounds read of the device table entry (DTE) that is adjacent to the last DTE and falls outside the device table. For example, if the device table can hold 0 to N-1 entries, then the IOMMU can be made to fetch the Nth entry, which falls outside the device table. The device table is owned by the hypervisor (HV) and is assigned in 4KB pages that are contiguous in system physical address (SPA). If the out-of-bound DTE falls on a guest-owned page, then the guest can exploit this bug to setup malicious table walks to corrupt HV pages and/or bring down the system. Note that this bug does not manifest when the device table size is set to its maximum size of 2MB. Therefore, force the device table size to the maximum 2MB on affected processors. These are CPU family 0x17 (Zen1/Zen2) through family 0x1a (Zen5/BRH). This is a mitigation for CVE-2024-21963. kdump reuses the previous kernel's device table only when the size encoded in the IOMMU device-table register matches pci_seg->dev_table_size. A mixed rollout disagrees: the unpatched kernel uses the IVRS-derived size and the patched kernel uses 2MB, so __reuse_device_table() rejects the table. On SNP-capable IOMMUs that rejection panics the kdump kernel. Kernels that both have this patch agree on 2MB and reuse succeeds. Update the production kernel and the crash kernel together.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Linux Linux | Software | from a69ca3401821b7312cb7ec939a8814240fd7b9b3, before 53d065f896347e22c8aec40524e6ea17a81eb7e2; from a69ca3401821b7312cb7ec939a8814240fd7b9b3, before 3d44a3c737901ccb39799f5b926946a3f928b494; from a69ca3401821b7312cb7ec939a8814240fd7b9b3, before fdb721868f361aa33b79e79c7bf261bd2c4f8686; from a69ca3401821b7312cb7ec939a8814240fd7b9b3, before c01e5bd5a6ad66c94834d8d9704ff0a15869b3b0; from a69ca3401821b7312cb7ec939a8814240fd7b9b3, before e8f1f1ac434f24604d93ea3c8cbac513b2dead69; from a69ca3401821b7312cb7ec939a8814240fd7b9b3, before 046f0b83f18c6313f63419517bb4185e3e0d1a6e; and 2 more | 53d065f896347e22c8aec40524e6ea17a81eb7e2; 3d44a3c737901ccb39799f5b926946a3f928b494; fdb721868f361aa33b79e79c7bf261bd2c4f8686; c01e5bd5a6ad66c94834d8d9704ff0a15869b3b0 |
| Linux Linux | Software | 2.6.27 | not recorded |
The 7.8 severity score (high) from the company that reported it, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | On the machine | The attacker needs access to the computer itself, for example a login or a file they can get you to open. |
| How hard it is | High | Hard to carry out. It depends on conditions the attacker cannot control. |
| Login needed | Low | The attacker needs an ordinary user account. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Changed | The attacker can get beyond the vulnerable program and affect other parts of the system. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 1.1 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 6.0 | A score for how bad the harm is if it works. Higher is worse. |
NIST lists 8 sources for this flaw, none tagged as a vendor patch.