🇰🇷 한글 설명
Linux 커널의 iommufd 구성 요소에서 하드웨어 페이지 테이블(hwpt) 교체 시 잘못된 핸들이 전달되는 취약점이 발견되었습니다. 이로 인해 장치의 도메인이 변경될 때 이전 도메인의 결함 응답 처리가 올바르게 수행되지 않을 수 있습니다.
💡 쉬운 설명
컴퓨터 부품이 사용하는 메모리 관리 규칙을 바꿀 때, 예전 규칙과 새 규칙을 혼동하여 발생하는 오류입니다. 이로 인해 시스템이 장치의 오류를 제대로 처리하지 못할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iommufd: Fix wrong hwpt passed to iommufd_auto_response_faults on replace
iommufd_hwpt_replace_device() calls:
iommufd_auto_response_faults(hwpt, old_handle);
passing the *new* hwpt together with the handle of
the device's *old* domain. This should be a parameter mismatch:
1. Semantically, iommufd_auto_response_faults(x, handle) scans
x->fault's deliver list and response xarray for groups matching
"handle". A group is queued under the hwpt that was attached at
fault-delivery time. old_handle is fetched *before* the domain switch,
so its group lives on old->fault, not on the new hwpt->fault.
2. Historically, the first argument was "old". The routine was
introduced by commit b7d8833677ba ("iommufd: Fault-capable hwpt
attach/detach/replace") as __fault_domain_replace_dev() in
fault.c, correctly calling iommufd_auto_response_faults(old, curr).
Commit fb21b1568ada ("iommufd: Make attach_handle generic than
fault specific") moved this into iommufd_hwpt_replace_device() in
device.c and swapped it to "hwpt". This should be a refactor regression,
not an intentional change.
Fix this by passing "old" instead.
📍 영향받는 시스템
iommufd 기능이 포함된 Linux 커널 버전
⚔️ 공격 벡터
직접적인 외부 공격보다는 시스템 내부의 하드웨어 자원 교체 과정에서 논리적 오류를 유발하는 방식
🛡️ 대응 방법
iommufd 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인