🔍 CVE-2024-27066

7.5
CVSS Score
HIGH
2024-05-01
2026-08-04 11:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 virtio packed 드라이버에서 간접 설명 테이블(indirect desc table)의 unmap 누수가 발생하는 취약점입니다. use_dma_api와 premapped 설정이 모두 활성화된 경우, do_unmap 조건이 거짓이 되어 vring_unmap_extra_packed 함수가 호출되지 않아 메모리 해제가 이루어지지 않습니다.

💡 쉬운 설명

가상화 기술을 사용할 때 시스템이 사용한 메모리 주소를 제대로 반환하지 않아 메모리가 계속 쌓이는 현상이 발생합니다. 이로 인해 시스템의 메모리가 점진적으로 부족해질 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: virtio: packed: fix unmap leak for indirect desc table When use_dma_api and premapped are true, then the do_unmap is false. Because the do_unmap is false, vring_unmap_extra_packed is not called by detach_buf_packed. if (unlikely(vq->do_unmap)) { curr = id; for (i = 0; i < state->num; i++) { vring_unmap_extra_packed(vq, &vq->packed.desc_extra[curr]); curr = vq->packed.desc_extra[curr].next; } } So the indirect desc table is not unmapped. This causes the unmap leak. So here, we check vq->use_dma_api instead. Synchronously, dma info is updated based on use_dma_api judgment This bug does not occur, because no driver use the premapped with indirect.

📍 영향받는 시스템

Linux kernel (virtio: packed driver 사용 환경)

⚔️ 공격 벡터

특정 조건(use_dma_api 및 premapped 활성화)을 갖춘 가상화 환경에서 지속적인 메모리 누수 유발

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

💻 영향받는 소프트웨어

Linux Kernel