🇰🇷 한글 설명
Linux 커널의 accel/ivpu 드라이버에서 펌웨어 로그 크기가 헤더 크기보다 작을 경우 발생하는 정수 언더플로우 취약점입니다. 이로 인해 잘못된 데이터 크기가 계산되어 메모리 경계를 벗어난 읽기 작업이 수행되거나 무한 루프가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 로그 파일을 읽을 때 파일 크기가 너무 작으면 계산 오류가 발생하여 시스템의 잘못된 메모리 영역을 읽거나 멈추게 만들 수 있습니다. 이는 공격자가 시스템 정보를 훔치거나 시스템을 마비시키는 데 악용될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
accel/ivpu: Reject firmware log with size smaller than header
fw_log_from_bo() validates the tracing buffer header_size and that the
log fits within the BO, but never checks that log->size is at least
log->header_size. fw_log_print_buffer() then computes:
u32 data_size = log->size - log->header_size;
which underflows to a near-U32_MAX value when firmware reports a log whose
size is smaller than its header. That huge data_size defeats the
log_start/log_end bounds clamps added by commit dd1311bcf0e6 ("accel/ivpu:
Add bounds checks for firmware log indices"), so fw_log_print_lines() reads
far past the small real data region of the BO. A size of 0 also makes
fw_log_from_bo() advance the offset by 0, causing the callers to loop
forever on the same header.
Reject logs whose size is smaller than the header (which also rejects
size == 0).
📍 영향받는 시스템
Linux kernel (accel/ivpu driver component)
⚔️ 공격 벡터
조작된 크기 정보를 가진 악성 펌웨어 로그를 시스템에 전달하여 메모리 읽기 및 무한 루프 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 ivpu 드라이버의 로그 크기 검증 로직을 적용해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 이후의 버전인지 확인합니다.