🇰🇷 한글 설명
0.8.1 미만 버전의 linux-loader 크레이트는 ELF 헤더에 제공된 오프셋과 크기를 사용하여 읽기 위치를 결정합니다. 공격자가 조작된 ELF 헤더를 사용하여 오프셋이 파일 끝을 넘어가게 만들면, 해당 크레이트를 사용하는 가상 머신 모니터(VMM)가 무한 루프에 빠질 수 있습니다.
💡 쉬운 설명
파일의 정보를 읽는 과정에서 잘못된 위치를 가리키도록 조작된 파일을 넣으면 컴퓨터가 길을 잃고 계속 뱅뱅 도는 상태가 됩니다. 이로 인해 시스템이 멈추거나 정상적으로 작동하지 않을 수 있습니다.
🇺🇸 원문 (English)
In versions prior to 0.8.1, the linux-loader crate uses the offsets and sizes provided in the ELF headers to determine the offsets to read from. If those offsets point beyond the end of the file this could lead to Virtual Machine Monitors using the `linux-loader` crate entering an infinite loop if the ELF header of the kernel they are loading was modified in a malicious manner. This issue has been addressed in 0.8.1. The issue can be mitigated by ensuring that only trusted kernel images are loaded or by verifying that the headers do not point beyond the end of the file.
📍 영향받는 시스템
linux-loader crate versions prior to 0.8.1
⚔️ 공격 벡터
조작된 ELF 헤더를 포함한 커널 이미지를 로드하여 가상 머신 모니터의 무한 루프 유도
🛡️ 대응 방법
linux-loader 크레이트를 0.8.1 이상 버전으로 업데이트하거나 신뢰할 수 있는 커널 이미지만 로드하도록 제한
🔧 검증 코드
출력된 버전 번호가 0.8.1 미만인지 확인합니다.
cargo pkgid linux-loader 2>/dev/null | grep -oE 'linux-loader@([0-9]+\.[0-9]+\.[0-9]+)'