🇰🇷 한글 설명
Linux 커널의 SCSI target 파일 시스템에서 aio_cmd 구조체의 iocb가 적절히 초기화되지 않는 취약점이 발견되었습니다. 이로 인해 fd_execute_rw_aio() 실행 시 잘못된 ki_write_stream 값이 생성되어 블록 장치에서 의도치 않은 쓰기 실패가 발생할 수 있습니다.
💡 쉬운 설명
리눅스 시스템의 저장 장치 관리 기능에서 데이터 기록 시 필요한 정보가 제대로 준비되지 않아 오류가 발생하는 문제입니다. 이로 인해 데이터를 저장하려 할 때 시스템이 잘못된 이유로 쓰기 작업을 거부할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: target: file: Use kzalloc_flex for aio_cmd
The target_core_file doesn't initialize the aio_cmd->iocb for the
ki_write_stream. When a write command fd_execute_rw_aio() is executed,
we may get a bogus ki_write_stream value, causing unintended write
failure status when checking iocb->ki_write_stream > max_write_streams
in the block device.
Let's just use kzalloc_flex when allocating the aio_cmd and let
ki_write_stream=0 to fix this issue.
📍 영향받는 시스템
Linux Kernel (SCSI target component 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 특정 SCSI 명령을 통해 비정상적인 쓰기 실패를 유도할 수 있음
🛡️ 대응 방법
aio_cmd 할당 시 kzalloc_flex를 사용하여 메모리를 초기화하고 ki_write_stream을 0으로 설정한 최신 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 패치된 최신 보안 업데이트 버전인지 확인