Descrizione
In the Linux kernel, the following vulnerability has been resolved: iommu/vt-d: Flush dev-IOTLB only when PCIe device is accessible in scalable mode Commit 4fc82cd907ac ("iommu/vt-d: Don't issue ATS Invalidation request when device is disconnected") relies on pci_dev_is_disconnected() to skip ATS invalidation for safely-removed devices, but it does not cover link-down caused by faults, which can still hard-lock the system. For example, if a VM fails to connect to the PCIe device, "virsh destroy" is executed to release resources and isolate the fault, but a hard-lockup occurs while releasing the group fd. Call Trace: qi_submit_sync qi_flush_dev_iotlb intel_pasid_tear_down_entry device_block_translation blocking_domain_attach_dev __iommu_attach_device __iommu_device_set_domain __iommu_group_set_domain_internal iommu_detach_group vfio_iommu_type1_detach_group vfio_group_detach_container vfio_group_fops_release __fput Although pci_device_is_present() is slower than pci_dev_is_disconnected(), it still takes only ~70 µs on a ConnectX-5 (8 GT/s, x2) and becomes even faster as PCIe speed and width increase. Besides, devtlb_invalidation_with_pasid() is called only in the paths below, which are far less frequent than memory map/unmap. 1. mm-struct release 2. {attach,release}_dev 3. set/remove PASID 4. dirty-tracking setup The gain in system stability far outweighs the negligible cost of using pci_device_is_present() instead of pci_dev_is_disconnected() to decide when to skip ATS invalidation, especially under GDR high-load conditions.
Come correggere
Priorità: Bassa — correggere con la manutenzione ordinaria. Motivazione: CVSS 5.5.
Versioni da aggiornare
- Linux Linux Kernel: vulnerabili le versioni dalla
5.10.214precedenti alla5.10.252→ aggiornare alla5.10.252o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
5.15.153precedenti alla5.15.202→ aggiornare alla5.15.202o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.1.83precedenti alla6.1.165→ aggiornare alla6.1.165o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.6.23precedenti alla6.6.128→ aggiornare alla6.6.128o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.7.11precedenti alla6.8→ aggiornare alla6.8o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.8.2precedenti alla6.12.75→ aggiornare alla6.12.75o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.13precedenti alla6.18.16→ aggiornare alla6.18.16o successiva. - Linux Linux Kernel: vulnerabili le versioni dalla
6.19precedenti alla6.19.6→ aggiornare alla6.19.6o successiva.
Patch e advisory
- Patch: git.kernel.org/stable/c/01aed2f1d7cb8fdf4c60c5bb472…
- Patch: git.kernel.org/stable/c/0da6697e577023d8867c7beb2d1…
- Patch: git.kernel.org/stable/c/10e60d87813989e20eac1f3eda3…
- Patch: git.kernel.org/stable/c/581ce094d9eafb78ec4f9de77bd…
- Patch: git.kernel.org/stable/c/9813306610d0d718c863aaa7092…
- Patch: git.kernel.org/stable/c/9deaacc8dcaddb6ddc5b52e1e63…
- Patch: git.kernel.org/stable/c/e2c78c69f8faf2885ea4ceee08c…
- Patch: git.kernel.org/stable/c/ead67d0378e90f419e385a43af2…
Mitigazioni temporanee
Da applicare solo se non è possibile aggiornare subito:
- Ridurre l'esposizione del componente vulnerabile (segmentazione, accesso solo da reti fidate) finché la patch non è applicata.
Verifica
- Individuare tutti gli asset con il prodotto interessato (inventario, scanner di vulnerabilità, CMDB).
- Confrontare la versione installata con quelle indicate sopra.
- Applicare l'aggiornamento in un ambiente di test, poi in produzione; riavviare i servizi se richiesto.
- Ripetere la scansione per confermare la correzione.
Configurazioni interessate
| Vendor | Prodotto | Versioni vulnerabili | Corretta in |
|---|---|---|---|
| Linux | Linux Kernel | ≥ 5.10.214 < 5.10.252 | 5.10.252 |
| Linux | Linux Kernel | ≥ 5.15.153 < 5.15.202 | 5.15.202 |
| Linux | Linux Kernel | ≥ 6.1.83 < 6.1.165 | 6.1.165 |
| Linux | Linux Kernel | ≥ 6.6.23 < 6.6.128 | 6.6.128 |
| Linux | Linux Kernel | ≥ 6.7.11 < 6.8 | 6.8 |
| Linux | Linux Kernel | ≥ 6.8.2 < 6.12.75 | 6.12.75 |
| Linux | Linux Kernel | ≥ 6.13 < 6.18.16 | 6.18.16 |
| Linux | Linux Kernel | ≥ 6.19 < 6.19.6 | 6.19.6 |
Riferimenti
- Patchhttps://git.kernel.org/stable/c/01aed2f1d7cb8fdf4c60c5bb4727608cb82b401d
- Patchhttps://git.kernel.org/stable/c/0da6697e577023d8867c7beb2d16a22510e4eea9
- Patchhttps://git.kernel.org/stable/c/10e60d87813989e20eac1f3eda30b3bae461e7f9
- Patchhttps://git.kernel.org/stable/c/581ce094d9eafb78ec4f9de77bd24b780c151236
- Patchhttps://git.kernel.org/stable/c/9813306610d0d718c863aaa70928bf57d7570ec0
- Patchhttps://git.kernel.org/stable/c/9deaacc8dcaddb6ddc5b52e1e63b457450ec0f94
- Patchhttps://git.kernel.org/stable/c/e2c78c69f8faf2885ea4ceee08c71ac738f401a0
- Patchhttps://git.kernel.org/stable/c/ead67d0378e90f419e385a43af29435242d80c12