🇰🇷 한글 설명
Linux 커널의 qla2xxx SCSI 드라이버에서 가상 포트(vport) 참조를 적절히 유지하지 않아 발생하는 Use-After-Free 취약점입니다. 특정 조건에서 가상 포트가 사용되기 전에 해제될 수 있어 시스템 불안정성이나 권한 상승을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터가 사용 중인 부품(가상 포트)을 안전하게 보호하지 않고 갑자기 제거해버려서 발생하는 오류입니다. 이로 인해 시스템이 멈추거나 해커가 시스템을 제어할 수 있는 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: qla2xxx: Hold vport reference in qla24xx_report_id_acquisition()
In the format 1 path, the virtual port is located on ha->vp_list while
holding vport_slock, but the lock is dropped before vp is used:
qla_update_host_map() is called and VP_IDX_ACQUIRED/REGISTER_FC4_NEEDED/
REGISTER_FDMI_NEEDED are set on vp. No reference is taken across that
window, so a concurrent qla24xx_deallocate_vp_id() can tear the vport
down and free it, leading to a use-after-free.
Take a vport reference (vref_count) under vport_slock when the matching
vp is found, and drop it after the last use of
vp. qla24xx_deallocate_vp_id() waits for vref_count to reach zero before
unlinking and freeing the vport, so the pointer stays valid. This
matches the reference idiom already used by the other ha->vp_list
traversals.
📍 영향받는 시스템
Linux kernel (qla2xxx/qla24xx SCSI driver modules)
⚔️ 공격 벡터
동시성 제어 결함을 이용한 Race Condition을 통한 Use-After-Free 공격
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 vport 참조 카운팅 로직을 수정해야 합니다.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.