🇰🇷 한글 설명
Linux 커널의 thermal zone device 등록 오류 처리 경로에서 동기화 메커니즘이 누락되어 있습니다. 등록 실패 시 thermal_release() 호출이 지연되면서 메모리 조기 해제(use-after-free) 취약점이 발생할 수 있습니다. 커널이 completion 신호를 제대로 기다리지 않아 커널 크래시나 메모리 손상을 유발할 수 있습니다.
💡 쉬운 설명
Linux 시스템에서 온도 관리 모듈 초기화 실패 시 메모리를 잘못 정리하는 문제입니다. 이로 인해 시스템이 충돌하거나 메모리가 손상될 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
thermal: core: Fix thermal zone device registration error path
If thermal_zone_device_register_with_trips() fails after registering
a thermal zone device, it needs to wait for the tz->removal completion
like thermal_zone_device_unregister(), in case user space has managed
to take a reference to the thermal zone device's kobject, in which case
thermal_release() may not be called by the error path itself and tz may
be freed prematurely.
Add the missing wait_for_completion() call to the thermal zone device
registration error path.
📍 영향받는 시스템
모든 Linux 커널 버전 (thermal subsystem이 활성화된 경우)
⚔️ 공격 벡터
로컬 공격 - thermal zone device 등록 실패 조건 유발 시 메모리 오류 트리거
🛡️ 대응 방법
Linux 커널을 최신 패치가 적용된 버전으로 업데이트
🔧 검증 코드
커널 버전과 thermal 모듈 로드 여부를 확인합니다. thermal 모듈이 로드되지 않으면 이 CVE는 영향을 받지 않습니다.
uname -r | grep -E 'kernel|version' && lsmod | grep thermal