🇰🇷 한글 설명
Linux 커널의 smartpqi 드라이버에서 장치 제거 후에도 리소스에 접근하는 레이스 컨디션 취약점이 발견되었습니다. 장치 제거 과정에서 LUN 리셋 작업이 동시에 실행될 경우 Use-After-Free 및 리소스 접근 오류가 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 제거하는 도중에 시스템이 해당 부품을 다시 조작하려고 시도하여 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: smartpqi: Fix device resources accessed after device removal
Correct possible race conditions during device removal.
Previously, a scheduled work item to reset a LUN could still execute
after the device was removed, leading to use-after-free and other
resource access issues.
This race condition occurs because the abort handler may schedule a LUN
reset concurrently with device removal via sdev_destroy(), leading to
use-after-free and improper access to freed resources.
- Check in the device reset handler if the device is still present in
the controller's SCSI device list before running; if not, the reset
is skipped.
- Cancel any pending TMF work that has not started in sdev_destroy().
- Ensure device freeing in sdev_destroy() is done while holding the
LUN reset mutex to avoid races with ongoing resets.
📍 영향받는 시스템
Linux kernel (smartpqi driver 사용 시스템)
⚔️ 공격 벡터
로컬 공격자가 장치 제거와 리셋 작업을 정밀하게 타이밍을 맞춰 실행하여 메모리 오류 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인