🔍 CVE-2024-38570

9.8
CVSS Score
CRITICAL
2024-06-19
2026-08-04 11:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 GFS2 파일 시스템에서 언마운트 시 glock 객체가 해제된 후에도 콜백 함수가 호출되어 발생하는 Use-After-Free 취약점입니다. DLM 락스페이스 해제 과정에서 비동기 잠금 경합 알림이 활성화된 상태로 남아 있어 메모리 오류를 유발할 수 있습니다.

💡 쉬운 설명

파일 시스템을 안전하게 분리하는 과정에서 이미 삭제된 메모리 영역을 시스템이 다시 사용하려고 시도하여 발생하는 오류입니다. 이로 인해 시스템이 충돌하거나 보안 공격에 악용될 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: gfs2: Fix potential glock use-after-free on unmount When a DLM lockspace is released and there ares still locks in that lockspace, DLM will unlock those locks automatically. Commit fb6791d100d1b started exploiting this behavior to speed up filesystem unmount: gfs2 would simply free glocks it didn't want to unlock and then release the lockspace. This didn't take the bast callbacks for asynchronous lock contention notifications into account, which remain active until until a lock is unlocked or its lockspace is released. To prevent those callbacks from accessing deallocated objects, put the glocks that should not be unlocked on the sd_dead_glocks list, release the lockspace, and only then free those glocks. As an additional measure, ignore unexpected ast and bast callbacks if the receiving glock is dead.

📍 영향받는 시스템

Linux Kernel (GFS2 파일 시스템을 사용하는 환경)

⚔️ 공격 벡터

로컬 공격자가 특정 파일 시스템 언마운트 시나리오를 유도하여 메모리 손상 유발

🛡️ 대응 방법

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

🔧 검증 코드

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

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel