🇰🇷 한글 설명
리눅스 커널의 hwmon(corsair-cpro) 드라이버에서 장치 탐색(probe) 실패 시 debugfs 항목을 제거하지 않는 취약점이 발견되었습니다. 이로 인해 해제된 메모리 포인터를 참조하게 되어 시스템 불안정성이나 보안 문제가 발생할 수 있습니다.
💡 쉬운 설명
장치를 연결하려다 실패했을 때, 시스템이 사용하던 임시 기록 파일을 제대로 지우지 않고 남겨두는 문제입니다. 이 남겨진 파일을 읽으려고 하면 이미 사라진 메모리 주소를 건드리게 되어 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
hwmon: (corsair-cpro) Remove debugfs entries when probe fails
ccp_debugfs_init() registers debugfs files whose private data is the devm
allocated ccp. If hwmon_device_register_with_info() fails right after it,
ccp_probe() returns without removing them: the HID core then frees ccp,
and ccp_remove() is not called for a failed probe, so the files stay
behind. Reading one of them dereferences the freed pointer.
Remove the debugfs entries on that error path. debugfs_remove_recursive()
waits for readers already inside the show callbacks, so ccp is no longer
reachable through debugfs by the time probe returns.
📍 영향받는 시스템
Linux kernel (corsair-cpro hwmon driver 포함 버전)
⚔️ 공격 벡터
장치 탐색 실패 후 남아있는 debugfs 파일을 읽어 해제된 메모리 주소에 접근 (Use-After-Free)
🛡️ 대응 방법
해당 취약점이 수정된 최신 리눅스 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인