🇰🇷 한글 설명
Linux 커널의 vdpa_sim_net 구성 요소에서 TX pull 결과값을 검증하지 않아 발생하는 취약점입니다. vringh_iov_pull_iotlb()가 반환하는 음수 에러 값이 부호 없는 정수로 변환되면서 RX 경로에서 매우 큰 길이 값으로 처리될 수 있습니다.
💡 쉬운 설명
데이터를 전송하는 과정에서 오류가 발생했을 때, 이 오류 신호를 잘못 계산하여 시스템이 아주 큰 데이터를 처리하려고 시도하는 문제입니다. 이로 인해 시스템 메모리 오류나 예상치 못한 동작이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
vdpa_sim_net: check TX pull result before RX copy
vringh_iov_pull_iotlb() returns a signed byte count. A failed TX pull is
currently added to the unsigned byte counter and then passed as a size_t
length to receive_filter() and vringh_iov_push_iotlb(). A negative error
can therefore become a large length in the RX path.
Handle non-positive pull results before every length use. Count the TX
error and complete the consumed TX descriptor with zero bytes.
I found this bug myself, though the patch was written with AI assistance.
📍 영향받는 시스템
Linux kernel (vdpa_sim_net 모듈 사용 환경)
⚔️ 공격 벡터
조작된 TX descriptor를 통해 vringh_iov_pull_iotlb()에서 음수 값을 유도하여 RX 경로의 메모리 오버플로우 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인하십시오.