🇰🇷 한글 설명
Linux 커널의 IIO(Industrial I/O) 트리거 기능에서 트리거 객체가 해제되기 전에 예약된 작업(reenable_work)이 취소되지 않는 취약점이 발견되었습니다. 이로 인해 트리거가 메모리에서 해제된 후에도 워커 스레드가 해제된 메모리에 접근하여 시스템 불안정이나 오류를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 제어하는 프로그램이 작업을 마치기도 전에 관련 메모리를 먼저 지워버리는 문제가 있습니다. 이 때문에 프로그램이 이미 사라진 정보를 찾으려다 시스템이 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iio: trigger: cancel reenable_work before freeing trigger
iio_trigger_notify_done_atomic() defers ->reenable() into
trig->reenable_work on the system workqueue, and the worker dereferences
the owning trigger through container_of(). Nothing cancels this work
before iio_trig_release() frees the trigger, so a worker armed by the
last in-flight IRQ can outlive the free and touch freed memory.
Cancel it at the top of iio_trig_release(), which every free path
reaches through the device core's final put_device().
Found by an in-house static analysis tool.
📍 영향받는 시스템
Linux kernel (IIO subsystem 사용 환경)
⚔️ 공격 벡터
로컬 공격자가 특정 IIO 장치 드라이버를 조작하여 메모리 해제 후 접근(Use-After-Free) 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 iio_trig_release() 내 작업 취소 로직 적용
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.