🔍 CVE-2024-39496

7.8
CVSS Score
HIGH
2024-07-12
2026-08-04 11:19
✅ 완료

🇰🇷 한글 설명

Linux 커널의 btrfs 파일 시스템에서 장치 교체 작업과 블록 그룹 생성 중 존 정보 로드 작업이 동시에 발생할 때 Use-After-Free 취약점이 발생합니다. 장치 교체 작업이 진행되는 동안 보호되지 않은 상태에서 장치 정보를 참조하여, 교체된 장치가 메모리에서 해제된 후에도 접근을 시도하게 됩니다.

💡 쉬운 설명

컴퓨터의 저장 장치를 교체하는 도중에 시스템이 이미 사라진 장치의 정보를 읽으려고 시도하여 오류가 발생하는 문제입니다. 이로 인해 시스템이 멈추거나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: btrfs: zoned: fix use-after-free due to race with dev replace While loading a zone's info during creation of a block group, we can race with a device replace operation and then trigger a use-after-free on the device that was just replaced (source device of the replace operation). This happens because at btrfs_load_zone_info() we extract a device from the chunk map into a local variable and then use the device while not under the protection of the device replace rwsem. So if there's a device replace operation happening when we extract the device and that device is the source of the replace operation, we will trigger a use-after-free if before we finish using the device the replace operation finishes and frees the device. Fix this by enlarging the critical section under the protection of the device replace rwsem so that all uses of the device are done inside the critical section.

📍 영향받는 시스템

Linux kernel (btrfs 파일 시스템 사용 환경)

⚔️ 공격 벡터

로컬 공격자가 장치 교체(device replace)와 블록 그룹 생성 작업을 정밀하게 타이밍을 맞춰 실행하여 발생

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 장치 교체 잠금(rwsem) 범위를 확장해야 함

🔧 검증 코드

출력된 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인합니다.

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