🔍 CVE-2024-36961

7.8
CVSS Score
HIGH
2024-06-03
2026-08-04 11:18
✅ 완료

🇰🇷 한글 설명

리눅스 커널의 thermal/debugfs 구성 요소에서 두 가지 잠금(locking) 문제가 발견되었습니다. 사용자가 thermal zone의 debugfs 포인터가 설정되기 전에 'mitigations' 파일을 열면 NULL 포인터 역참조가 발생하며, thermal_debug_tz_remove() 함수가 적절한 잠금 없이 실행되어 객체가 조기에 해제될 수 있는 취약점입니다.

💡 쉬운 설명

컴퓨터의 열을 관리하는 시스템 파일에 접근할 때, 데이터가 준비되지 않았거나 이미 삭제된 데이터를 참조하여 시스템이 멈추거나 오류가 발생할 수 있는 문제입니다. 이는 잘못된 메모리 접근으로 인해 시스템 불안정을 초래할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: thermal/debugfs: Fix two locking issues with thermal zone debug With the current thermal zone locking arrangement in the debugfs code, user space can open the "mitigations" file for a thermal zone before the zone's debugfs pointer is set which will result in a NULL pointer dereference in tze_seq_start(). Moreover, thermal_debug_tz_remove() is not called under the thermal zone lock, so it can run in parallel with the other functions accessing the thermal zone's struct thermal_debugfs object. Then, it may clear tz->debugfs after one of those functions has checked it and the struct thermal_debugfs object may be freed prematurely. To address the first problem, pass a pointer to the thermal zone's struct thermal_debugfs object to debugfs_create_file() in thermal_debug_tz_add() and make tze_seq_start(), tze_seq_next(), tze_seq_stop(), and tze_seq_show() retrieve it from s->private instead of a pointer to the thermal zone object. This will ensure that tz_debugfs will be valid across the "mitigations" file accesses until thermal_debugfs_remove_id() called by thermal_debug_tz_remove() removes that file. To address the second problem, use tz->lock in thermal_debug_tz_remove() around the tz->debugfs value check (in case the same thermal zone is removed at the same time in two different threads) and its reset to NULL. Cc :6.8+ <[email protected]> # 6.8+

📍 영향받는 시스템

Linux kernel 6.8 미만 버전 (6.8+ stable 버전에서 수정됨)

⚔️ 공격 벡터

로컬 사용자가 특정 thermal zone의 debugfs 파일을 조작하여 NULL 포인터 역참조 또는 Use-After-Free 유도

🛡️ 대응 방법

리눅스 커널을 최신 안정 버전(6.8 이상 또는 해당 배포판의 보안 패치 적용 버전)으로 업데이트하십시오.

🔧 검증 코드

출력된 커널 버전이 6.8 이상인지 확인하여 패치 적용 여부를 판단합니다.

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