🇰🇷 한글 설명
Linux 커널의 devm_clk_get_optional_enabled_with_rate() 함수에서 클럭 속도 설정 실패 시, 활성화되지 않은 클럭을 해제하려 시도하는 정리(cleanup) 로직 오류가 발견되었습니다. 이 문제는 클럭 속도를 설정하기 전에 정리 작업을 먼저 등록하여 발생하며, 성공적으로 준비 및 활성화된 후에만 정리 작업을 등록하도록 수정되었습니다.
💡 쉬운 설명
기계의 속도를 조절하다가 실패했을 때, 아직 켜지도 않은 기계를 끄려고 시도하여 발생하는 오류입니다. 이로 인해 시스템이 예기치 않게 멈추거나 불안정해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
clk: devres: fix cleanup in devm_clk_get_optional_enabled_with_rate()
devm_clk_get_optional_enabled_with_rate() registers its cleanup action
before setting the clock rate. If setting the rate fails, it attempts to
disable and unprepare a clock that was never enabled. This issue was
spotted while reviewing "rust: clk: add devres-managed clks" [1].
Register the cleanup action only after successfully preparing and enabling
the clock.
[1]: https://lore.kernel.org/rust-for-linux/
[email protected]
📍 영향받는 시스템
Linux Kernel (devm_clk 관련 함수를 사용하는 모든 커널 버전)
⚔️ 공격 벡터
직접적인 외부 공격은 어려우나, 특정 하드웨어 제어 시도 시 커널 패닉을 유도하는 로컬 공격 가능성 존재
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 릴리스인지 배포판 보안 공지를 통해 확인