🇰🇷 한글 설명
Linux 커널의 vduse 구성 요소에서 get_config() 함수가 offset 범위를 적절히 검사하지 않아 발생하는 취약점입니다. offset이 config_size보다 클 경우 부호 없는 정수 연산 오류로 인해 매우 큰 값이 생성되어 경계 외 읽기(out-of-bounds read)가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터가 데이터를 읽을 때 정해진 범위를 벗어난 위치를 읽으려고 시도할 수 있는 오류입니다. 이로 인해 시스템의 민감한 정보가 외부로 유출될 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
vduse: check that offset is within bounds in get_config()
This condition checks "len" but it does not check "offset" and that
could result in an out of bounds read if "offset > dev->config_size".
The problem is that since both variables are unsigned the
"dev->config_size - offset" subtraction would result in a very high
unsigned value.
I think these checks might not be necessary because "len" and "offset"
are supposed to already have been validated using the
vhost_vdpa_config_validate() function. But I do not know the code
perfectly, and I like to be safe.
📍 영향받는 시스템
vduse 모듈을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
조작된 offset 값을 전달하여 커널 메모리의 경계 외 영역을 읽는 방식
🛡️ 대응 방법
vduse의 get_config() 함수에 offset 범위 검사 로직이 포함된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 확인