🔍 CVE-2024-57985

7.0
CVSS Score
HIGH
2025-02-27
2026-10-15 22:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 Qualcomm SCM 드라이버에서 프로브(probe) 실패 시 전역 변수인 '__scm'을 적절히 정리하지 않아 발생하는 취약점입니다. 이로 인해 드라이버 초기화가 완료되지 않았음에도 외부 사용자가 해당 변수에 접근할 경우 NULL 포인터 역참조로 인한 시스템 오류가 발생할 수 있습니다.

💡 쉬운 설명

장치를 준비하는 과정에서 오류가 났는데도 시스템이 '준비 완료'라고 착각하여 잘못된 메모리 주소를 참조하는 문제입니다. 이로 인해 시스템이 갑자기 멈추거나 오류가 발생할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: firmware: qcom: scm: Cleanup global '__scm' on probe failures If SCM driver fails the probe, it should not leave global '__scm' variable assigned, because external users of this driver will assume the probe finished successfully. For example TZMEM parts ('__scm->mempool') are initialized later in the probe, but users of it (__scm_smc_call()) rely on the '__scm' variable. This fixes theoretical NULL pointer exception, triggered via introducing probe deferral in SCM driver with call trace: qcom_tzmem_alloc+0x70/0x1ac (P) qcom_tzmem_alloc+0x64/0x1ac (L) qcom_scm_assign_mem+0x78/0x194 qcom_rmtfs_mem_probe+0x2d4/0x38c platform_probe+0x68/0xc8

📍 영향받는 시스템

Qualcomm SCM 드라이버를 사용하는 Linux 커널 기반 시스템

⚔️ 공격 벡터

드라이버 프로브 지연(probe deferral)을 유도하여 NULL 포인터 예외를 발생시키는 방식

🛡️ 대응 방법

해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 취약점이 패치된 최신 릴리스 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel