🔍 CVE-2024-27392

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

🇰🇷 한글 설명

리눅스 커널의 NVMe 호스트 드라이버에서 ns_update_nuse() 함수 호출 시 nvme_id_ns 구조체의 이중 해제(double-free) 취약점이 발견되었습니다. nvme_identify_ns() 함수가 실패할 경우 이미 메모리가 해제되었음에도 불구하고 추가로 kfree()를 호출하여 발생합니다.

💡 쉬운 설명

컴퓨터의 저장 장치(NVMe)를 관리하는 프로그램에서 이미 삭제한 메모리 공간을 다시 삭제하려고 시도하는 오류가 있습니다. 이로 인해 시스템이 갑자기 멈추거나 보안 문제가 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: nvme: host: fix double-free of struct nvme_id_ns in ns_update_nuse() When nvme_identify_ns() fails, it frees the pointer to the struct nvme_id_ns before it returns. However, ns_update_nuse() calls kfree() for the pointer even when nvme_identify_ns() fails. This results in KASAN double-free, which was observed with blktests nvme/045 with proposed patches [1] on the kernel v6.8-rc7. Fix the double-free by skipping kfree() when nvme_identify_ns() fails.

📍 영향받는 시스템

Linux kernel v6.8-rc7 및 관련 NVMe 드라이버를 사용하는 시스템

⚔️ 공격 벡터

로컬 공격자가 조작된 NVMe 명령을 통해 커널 메모리 오류를 유도하여 시스템 중단 또는 권한 상승 시도 가능

🛡️ 대응 방법

리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 nvme_identify_ns() 실패 시 kfree()를 건너뛰도록 수정

🔧 검증 코드

출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel