🇰🇷 한글 설명
Linux 커널의 Intel VT-d IOMMU 구현에서 PASID 엔트리 교체 시 레이스 컨디션(Race Condition) 취약점이 발견되었습니다. 512비트 크기의 엔트리를 한 번에 업데이트하는 과정에서 하드웨어가 불완전한 데이터를 읽는 'Torn Read' 현상이 발생하여 시스템의 예측 불가능한 동작이나 오류를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품이 정보를 읽는 도중에 데이터가 갑자기 바뀌어, 반만 바뀐 잘못된 정보를 읽게 되는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 예상치 못한 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iommu/vt-d: Fix race condition during PASID entry replacement
The Intel VT-d PASID table entry is 512 bits (64 bytes). When replacing
an active PASID entry (e.g., during domain replacement), the current
implementation calculates a new entry on the stack and copies it to the
table using a single structure assignment.
struct pasid_entry *pte, new_pte;
pte = intel_pasid_get_entry(dev, pasid);
pasid_pte_config_first_level(iommu, &new_pte, ...);
*pte = new_pte;
Because the hardware may fetch the 512-bit PASID entry in multiple
128-bit chunks, updating the entire entry while it is active (Present
bit set) risks a "torn" read. In this scenario, the IOMMU hardware
could observe an inconsistent state — partially new data and partially
old data — leading to unpredictable behavior or spurious faults.
Fix this by removing the unsafe "replace" helpers and following the
"clear-then-update" flow, which ensures the Present bit is cleared and
the required invalidation handshake is completed before the new
configuration is applied.
📍 영향받는 시스템
Intel VT-d를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 PASID 엔트리 교체 과정을 유도하여 시스템 오류 또는 비정상 동작 유발
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인