🇰🇷 한글 설명
Linux 커널의 amba-pl011 시리얼 드라이버에서 RS485 hrtimer가 IRQ 해제 후에도 실행될 수 있는 취약점이 발견되었습니다. IRQ 핸들러가 타이머를 작동시킬 수 있으므로, IRQ를 먼저 해제한 후 타이머를 취소하도록 수정되었습니다.
💡 쉬운 설명
장치가 꺼질 때 타이머가 제대로 멈추지 않아 시스템 오류를 일으킬 수 있는 문제입니다. 이를 방지하기 위해 장치를 끄기 전 타이머를 먼저 안전하게 중단하도록 개선되었습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
serial: amba-pl011: cancel RS485 hrtimers after freeing IRQ
The RS485 trigger hrtimers are embedded in the devm-managed port and can
fire after it is freed. The IRQ handler can arm a timer, so free the IRQ
first and then cancel both timers.
Complete the RS485 stop without arming a timer, and cancel the timers
in remove() for the suspend-then-unbind path, where shutdown is not
called.
This issue was found by an in-house static analysis tool.
📍 영향받는 시스템
Linux kernel (amba-pl011 serial driver 사용 시스템)
⚔️ 공격 벡터
로컬 시스템에서 장치 드라이버의 자원 해제 과정 중 타이머 충돌을 유도하여 시스템 불안정 유발
🛡️ 대응 방법
amba-pl011 드라이버의 RS485 타이머 관리 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 버전인지 확인