🇰🇷 한글 설명
Linux 커널의 arm_scmi 펌웨어에서 알림(notification) 해제 과정 중 메모리 해제 후 참조(Use-After-Free)가 발생하는 취약점입니다. 알림 코어가 완전히 중단되기 전에 통신 채널이 해제되거나, 대기 중인 작업이 완료되기 전에 리소스가 파괴되어 시스템 불안정이나 메모리 오류를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품 간의 통신을 정리하는 과정에서, 이미 없어진 정보를 다시 불러오려고 시도하여 발생하는 오류입니다. 이로 인해 시스템이 갑자기 멈추거나 예상치 못한 동작을 할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
firmware: arm_scmi: Quiesce notifications before teardown
scmi_notification_exit() clears and releases the notification instance,
but transport callbacks can still deliver incoming notifications until
the TX/RX channels are freed. During remove, an RX interrupt in that
window can enter scmi_notify() while notification state is being torn
down and then dereference freed memory. The same ordering exists on the
probe error path after notification initialization.
The notification late-init worker has a separate lifetime issue: protocol
event registration queues ni->init_work on the system workqueue, so
destroying ni->notify_wq does not drain that work. If the devres group is
released while init_work is still pending or running, the late-init worker
can dereference the freed notification instance.
Quiesce the notification core before TX/RX channels are torn down, then
clean up the channels before releasing the notification core resources.
Use disable_work_sync() so future late-init queueing is rejected and any
already queued or running late-init work has completed before channel
teardown starts.
📍 영향받는 시스템
arm_scmi 펌웨어를 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
로컬 공격자가 특정 하드웨어 인터럽트 상황을 유도하여 메모리 오류를 발생시킴
🛡️ 대응 방법
arm_scmi 관련 패치가 적용된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이상인지 확인