🇰🇷 한글 설명
Linux 커널의 iommufd 구성 요소에서 ALIGN() 매크로 사용 시 정수 오버플로가 발생할 수 있는 취약점입니다. 이로 인해 IOVA(I/O 가상 주소)가 손상되어 사용자 공간에서 다른 매핑 영역이나 예약된 영역과 겹치는 매핑을 생성할 수 있습니다.
💡 쉬운 설명
메모리 주소를 계산하는 과정에서 숫자가 너무 커져서 엉뚱한 주소로 돌아가는 오류가 발생합니다. 공격자가 이를 이용해 원래 접근하면 안 되는 메모리 영역에 접근할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iommufd: Prevent ALIGN() overflow
When allocating IOVA the candidate range gets aligned to the target
alignment. If the range is close to ULONG_MAX then the ALIGN() can
wrap resulting in a corrupted iova.
Open code the ALIGN() using get_add_overflow() to prevent this.
This simplifies the checks as we don't need to check for length earlier
either.
Consolidate the two copies of this code under a single helper.
This bug would allow userspace to create a mapping that overlaps with some
other mapping or a reserved range.
📍 영향받는 시스템
iommufd 기능을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
사용자 공간(Userspace)에서 특정 조건의 IOVA 할당 요청을 통해 메모리 매핑 중첩 유도
🛡️ 대응 방법
get_add_overflow()를 사용하여 정수 오버플로를 방지하도록 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인