CVE-2026-45894
Beschrijving NL
In de Linux kernel is de volgende kwetsbaarheid verholpen:
iommu/vt-d: Huidige bit wissen voordat PASID-invoer wordt afgebroken
De Intel VT-d Scalable Mode PASID-tabelinvoer bestaat uit 512 bits (64
bytes). Bij het afbreken van een invoer, stelt de huidige implementatie de
volledige 64-byte structuur onmiddellijk met behulp van meerdere 64-bits schrijfbewerkingen. Aangezien de IOMMU-hardware deze 64 bytes kan ophalen met behulp van meerdere
interne transacties (bijv. vier 128-bits bursts), bijwerken of op nul zetten
de hele invoer terwijl deze actief is (P=1) riskeert een "gescheurde" aflezing. Als een
hardware ophalen gebeurt gelijktijdig met de CPU die de invoer op nul zet, de
hardware kan een inconsistente toestand waarnemen, wat leidt tot onvoorspelbare
gedrag of onechte fouten. Volg de "Richtlijnen voor software voor invalidaties" in de VT-d-specificatie
(Paragraaf 6.5.3.3) door de aanbevolen eigendomshanddruk te implementeren:
1. Wis alleen het 'Aanwezig' (P) -bit van de PASID-ingang. 2. Gebruik een dma_wmb () om ervoor te zorgen dat de gewiste bit zichtbaar is voor hardware
voordat u verder gaat. 3. Voer de vereiste ongeldigmakingssequentie uit (PASID-cache, IOTLB en
Device-TLB flush) om ervoor te zorgen dat de hardware alle cache heeft vrijgegeven
referenties. 4. Pas nadat de spoelingen zijn voltooid, nul uit de resterende velden
van de PASID-ingang. Voeg ook een dma_wmb () toe in pasid_set_present() om ervoor te zorgen dat alle andere
velden van de PASID-ingang zijn zichtbaar voor de hardware vóór het heden
bit is ingesteld.
Origineel (Engels) tonen
In the Linux kernel, the following vulnerability has been resolved:
iommu/vt-d: Clear Present bit before tearing down PASID entry
The Intel VT-d Scalable Mode PASID table entry consists of 512 bits (64
bytes). When tearing down an entry, the current implementation zeros the
entire 64-byte structure immediately using multiple 64-bit writes.
Since the IOMMU hardware may fetch these 64 bytes using multiple
internal transactions (e.g., four 128-bit bursts), updating or zeroing
the entire entry while it is active (P=1) risks a "torn" read. If a
hardware fetch occurs simultaneously with the CPU zeroing the entry, the
hardware could observe an inconsistent state, leading to unpredictable
behavior or spurious faults.
Follow the "Guidance to Software for Invalidations" in the VT-d spec
(Section 6.5.3.3) by implementing the recommended ownership handshake:
1. Clear only the 'Present' (P) bit of the PASID entry.
2. Use a dma_wmb() to ensure the cleared bit is visible to hardware
before proceeding.
3. Execute the required invalidation sequence (PASID cache, IOTLB, and
Device-TLB flush) to ensure the hardware has released all cached
references.
4. Only after the flushes are complete, zero out the remaining fields
of the PASID entry.
Also, add a dma_wmb() in pasid_set_present() to ensure that all other
fields of the PASID entry are visible to the hardware before the Present
bit is set.