🇰🇷 한글 설명
Linux 커널의 tegra241-cmdqv IOMMU 드라이버에서 vSID 매핑 시 스트림 ID 개수를 정확히 하나로 제한하지 않아 발생하는 취약점입니다. 스트림이 여러 개인 경우 일부 ATC 및 IOTLB 엔트리에 대한 무효화가 불가능하며, 스트림이 없는 경우 경계 외 읽기(Out-of-bounds read)가 발생할 수 있습니다.
💡 쉬운 설명
장치에 연결된 통로(스트림)가 여러 개일 때 시스템이 이를 제대로 관리하지 못해 보안 설정이 무시되거나 오류가 발생할 수 있는 문제입니다. 또한 통로가 아예 없을 경우 시스템이 잘못된 메모리 영역을 읽어 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iommu/tegra241-cmdqv: Require exactly one Stream ID for a vSID
tegra241_vintf_init_vsid() maps a guest vSID to a single physical Stream ID
taken from master->streams[0], and only warns when the device does not have
exactly one stream. A device with several streams gets only its first one
mapped, so a guest vSID invalidation cannot reach the others' ATC and IOTLB
entries; a device with none makes master->streams a ZERO_SIZE_PTR, read out
of bounds.
Reject the mapping with -EOPNOTSUPP if master->num_streams is not one.
📍 영향받는 시스템
Linux kernel (tegra241-cmdqv IOMMU driver 포함 버전)
⚔️ 공격 벡터
특수하게 구성된 하드웨어 스트림 설정을 통해 IOMMU 매핑 무효화 메커니즘을 우회하거나 메모리 읽기 오류 유도
🛡️ 대응 방법
커널 패치를 적용하여 master->num_streams가 1이 아닌 경우 매핑을 거부하도록 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전인지 배포판 보안 공지를 통해 확인