🇰🇷 한글 설명
Linux 커널의 virtio-pci 구성 요소에서 관리 명령 완료 시 실제 데이터보다 8바이트 더 큰 결과 크기가 반환되는 취약점이 발견되었습니다. 이로 인해 목적지로 상태가 전송될 때 불필요한 데이터가 포함되거나, 커널 할당 버퍼보다 큰 크기를 읽으려 시도하여 오류가 발생할 수 있습니다.
💡 쉬운 설명
가상화 장치를 관리하는 과정에서 실제 데이터보다 더 많은 양의 데이터를 읽으려고 시도하는 오류가 있습니다. 이로 인해 시스템이 예상치 못한 데이터를 처리하거나 프로그램이 비정상적으로 종료될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
virtio-pci: Fix result size returned for the admin command completion
The result size returned by virtio_pci_admin_dev_parts_get() is 8 bytes
larger than the actual result data size. This occurs because the
result_sg_size field of the command is filled with the result length
from virtqueue_get_buf(), which includes both the data size and an
additional 8 bytes of status.
This oversized result size causes two issues:
1. The state transferred to the destination includes 8 bytes of extra
data at the end.
2. The allocated buffer in the kernel may be smaller than the returned
size, leading to failures when reading beyond the allocated size.
The commit fixes this by subtracting the status size from the result of
virtqueue_get_buf().
This fix has been tested through live migrations with virtio-net,
virtio-net-transitional, and virtio-blk devices.
📍 영향받는 시스템
virtio-pci를 사용하는 Linux 커널 기반 시스템 (virtio-net, virtio-blk 등 포함)
⚔️ 공격 벡터
가상화 환경에서 악의적인 관리 명령을 통해 커널 메모리 읽기 오류를 유도하거나 잘못된 상태 전이를 발생시킴
🛡️ 대응 방법
virtio-pci 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인