🇰🇷 한글 설명
Linux 커널의 qla2xxx SCSI 드라이버에서 NVMe 중단 작업(abort_work)을 초기화하는 과정 중 발생하는 취약점입니다. 동일한 명령에 대해 중단 요청이 중복 발생할 경우, 이미 큐에 대기 중인 작업 구조체를 다시 초기화하여 워크큐 리스트를 손상시키고 시스템 충돌이나 무한 루프를 유발할 수 있습니다.
💡 쉬운 설명
컴퓨터가 특정 작업을 취소하려고 할 때, 이미 취소 중인 작업을 다시 취소하려고 시도하면서 시스템의 작업 목록이 꼬여버리는 문제입니다. 이로 인해 컴퓨터가 갑자기 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Initialize NVMe abort_work once at submission
qla_nvme_fcp_abort() and qla_nvme_ls_abort() ran INIT_WORK() on
priv->abort_work immediately before schedule_work(). INIT_WORK()
reinitializes the work_struct, resetting its list head and clearing the
pending bit. If an abort is issued more than once for the same command
(for example, concurrent transport teardown and a timeout-driven abort),
the second INIT_WORK() reinitializes a work item that is already queued,
which can corrupt the workqueue list and lead to crashes or a looping
worker.
Initialize priv->abort_work once at command submission, next to the
existing per-command spin_lock_init(&priv->cmd_lock), and leave only
schedule_work() in the abort paths. schedule_work() already does nothing
when the work item is still pending, so a repeated abort no longer
disturbs an in-flight work item. The command is not returned to the
transport until the final kref_put()/release callback runs after
abort_work has completed, so the work item is idle before priv is reused
and the single submission-time INIT_WORK() is safe.
📍 영향받는 시스템
Linux kernel (qla2xxx SCSI driver 사용 시스템)
⚔️ 공격 벡터
동시적인 전송 해제 및 타임아웃 기반 중단 요청을 유도하여 워크큐 리스트 손상 유발
🛡️ 대응 방법
커널 패치를 통해 NVMe abort_work를 명령 제출 시점에 한 번만 초기화하도록 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 최신 패치 버전인지 확인