🇰🇷 한글 설명
Linux 커널의 iommu/intel 구성 요소에서 dmar_latency_disable() 함수가 메모리 범위를 벗어난 memset 작업을 수행하는 취약점이 발견되었습니다. 특정 타입의 지연 시간 통계 항목만 초기화해야 하지만, 배열 전체를 초기화하도록 잘못 계산되어 인접한 메모리를 손상시킬 수 있습니다.
💡 쉬운 설명
컴퓨터의 메모리 관리 기능 중 일부가 데이터를 지울 때 정해진 범위를 넘어서 옆에 있는 데이터를 실수로 지워버리는 문제입니다. 이로 인해 시스템이 불안정해지거나 예상치 못한 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iommu/intel: Fix out-of-bounds memset in dmar_latency_disable()
dmar_latency_disable() intends to zero out only the single
latency_statistic entry for the given type, but the memset size was
computed as sizeof(*lstat) * DMAR_LATENCY_NUM, which clears the entire
array starting from &lstat[type].
When type > 0, this writes beyond the end of the allocated array,
corrupting adjacent memory.
Fix by using sizeof(*lstat) to clear only the target entry.
📍 영향받는 시스템
Intel IOMMU를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
로컬 공격자가 특정 IOMMU 설정을 조작하여 인접 메모리 영역을 오염시키는 방식
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 배포판의 보안 업데이트 버전인지 확인