🔍 CVE-2024-39472

7.3
CVSS Score
HIGH
2024-07-05
2026-08-04 11:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 XFS 파일 시스템에서 로그 복구 버퍼 할당 시 잘못된 h_size 값을 처리하지 못해 발생하는 취약점입니다. 잘못된 h_size 값이 입력될 경우 메모리 경계를 벗어나는 접근(Out-of-bounds access)이 발생할 수 있습니다.

💡 쉬운 설명

파일 시스템의 복구 과정에서 메모리 크기를 잘못 계산하여 시스템의 허용 범위를 넘어서는 데이터에 접근할 수 있는 문제입니다. 공격자가 특수하게 조작된 데이터를 사용하면 시스템 오류나 보안 문제를 일으킬 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: xfs: fix log recovery buffer allocation for the legacy h_size fixup Commit a70f9fe52daa ("xfs: detect and handle invalid iclog size set by mkfs") added a fixup for incorrect h_size values used for the initial umount record in old xfsprogs versions. Later commit 0c771b99d6c9 ("xfs: clean up calculation of LR header blocks") cleaned up the log reover buffer calculation, but stoped using the fixed up h_size value to size the log recovery buffer, which can lead to an out of bounds access when the incorrect h_size does not come from the old mkfs tool, but a fuzzer. Fix this by open coding xlog_logrec_hblks and taking the fixed h_size into account for this calculation.

📍 영향받는 시스템

XFS 파일 시스템을 사용하는 Linux 커널 버전 (특정 커밋 이전 버전)

⚔️ 공격 벡터

조작된 h_size 값을 가진 XFS 로그 데이터를 통한 메모리 경계 외 접근 유도

🛡️ 대응 방법

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

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel