🇰🇷 한글 설명
리눅스 커널의 watchdog pretimeout 기능에서 watchdog_unregister_governor() 함수 호출 시 Use-After-Free(UAF) 취약점이 발생합니다. 특정 governor를 해제할 때 default_gov가 제대로 초기화되지 않아, 이후 등록되는 장치나 기존 장치가 이미 해제된 메모리 주소를 참조하게 됩니다.
💡 쉬운 설명
시스템의 감시 역할을 하는 기능이 종료될 때, 사용하던 메모리 주소를 깨끗이 지우지 않아 발생하는 문제입니다. 이로 인해 시스템이 잘못된 메모리 주소를 참조하게 되어 프로그램이 충돌하거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
watchdog: pretimeout: Fix UAF in watchdog_unregister_governor()
When a watchdog governor is unregistered, it updates existing watchdog
devices that were using this governor by falling back to `default_gov`.
If the governor being unregistered is currently set as `default_gov`,
the `default_gov` is never cleared. This leads to 2 use-after-free
issues:
1. New watchdog devices registered after this point will inherit the
dangling `default_gov`.
2. Existing watchdog devices using the unregistered governor will have
their `wdd->gov` reassigned to the dangling `default_gov`.
Fix the UAF by clearing `default_gov` if it matches the governor being
unregistered.
📍 영향받는 시스템
Linux kernel (watchdog pretimeout 관련 모듈 사용 시스템)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 watchdog governor를 등록 및 해제하는 과정을 통해 메모리 오염 유도
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 watchdog_unregister_governor()의 수정 사항 반영
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인