🇰🇷 한글 설명
Linux 커널의 SCSI 타겟 코어에서 iSCSI abort 작업이 tmr_list에 잘못 추가되어 발생하는 취약점입니다. LUN_RESET 작업이 완료되지 않은 abort의 참조 카운트를 기다리며 무한 대기 상태에 빠져 시스템이 차단(blocked)될 수 있습니다.
💡 쉬운 설명
컴퓨터 저장 장치와 통신하는 과정에서 특정 명령이 제대로 종료되지 않아 시스템이 멈춰버리는 문제입니다. 이로 인해 서버의 작업이 중단되거나 시스템 응답이 없어질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: target: core: Add TMF to tmr_list handling
An abort that is responded to by iSCSI itself is added to tmr_list but does
not go to target core. A LUN_RESET that goes through tmr_list takes a
refcounter on the abort and waits for completion. However, the abort will
be never complete because it was not started in target core.
Unable to locate ITT: 0x05000000 on CID: 0
Unable to locate RefTaskTag: 0x05000000 on CID: 0.
wait_for_tasks: Stopping tmf LUN_RESET with tag 0x0 ref_task_tag 0x0 i_state 34 t_state ISTATE_PROCESSING refcnt 2 transport_state active,stop,fabric_stop
wait for tasks: tmf LUN_RESET with tag 0x0 ref_task_tag 0x0 i_state 34 t_state ISTATE_PROCESSING refcnt 2 transport_state active,stop,fabric_stop
...
INFO: task kworker/0:2:49 blocked for more than 491 seconds.
task:kworker/0:2 state:D stack: 0 pid: 49 ppid: 2 flags:0x00000800
Workqueue: events target_tmr_work [target_core_mod]
Call Trace:
__switch_to+0x2c4/0x470
_schedule+0x314/0x1730
schedule+0x64/0x130
schedule_timeout+0x168/0x430
wait_for_completion+0x140/0x270
target_put_cmd_and_wait+0x64/0xb0 [target_core_mod]
core_tmr_lun_reset+0x30/0xa0 [target_core_mod]
target_tmr_work+0xc8/0x1b0 [target_core_mod]
process_one_work+0x2d4/0x5d0
worker_thread+0x78/0x6c0
To fix this, only add abort to tmr_list if it will be handled by target
core.
📍 영향받는 시스템
Linux Kernel (scsi: target: core 관련 모듈 사용 시스템)
⚔️ 공격 벡터
iSCSI 프로토콜을 통해 조작된 abort/LUN_RESET 명령을 전송하여 타겟 코어의 작업 스레드를 차단
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 TMF 처리 로직 수정
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인