🇰🇷 한글 설명
Linux 커널의 8250_bcm7271 시리얼 드라이버에서 brcmuart_remove() 함수 호출 시 Use-After-Free 취약점이 발견되었습니다. 포트를 해제하기 전에 타이머를 취소하지 않아, 메모리가 해제된 후에도 타이머 콜백이 실행되어 잘못된 메모리 참조가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 제거하는 과정에서 프로그램이 이미 삭제된 메모리 영역을 다시 사용하려고 시도하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 예상치 못한 동작이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
serial: 8250_bcm7271: fix use-after-free in brcmuart_remove()
brcmuart_handle_irq() starts priv->hrt to work around a receive-timeout
quirk of the 8250 core when hardware flow control is enabled; the timer
callback brcmuart_hrtimer_func() dereferences priv.
brcmuart_remove() cancels the hrtimer before it unregisters the port, so
a receive-timeout interrupt that arrives in between re-arms the timer.
After devm frees priv, the callback runs on freed memory.
Unregister the port before cancelling the hrtimer.
serial8250_unregister_port() shuts the port down and frees its IRQ, so
brcmuart_handle_irq() can no longer restart the timer, and the final
hrtimer_cancel() drains any timer that was armed before or during the
unregister.
This issue was found by an in-house static analysis tool.
📍 영향받는 시스템
Linux kernel (8250_bcm7271 driver component)
⚔️ 공격 벡터
로컬 공격자가 특정 하드웨어 흐름 제어 조건에서 시리얼 포트를 해제하여 시스템 불안정 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.