🇰🇷 한글 설명
리눅스 커널의 libata-sff 구성 요소에서 할당된 버퍼 범위를 벗어나 데이터를 쓰는 버퍼 오버플로우 취약점이 발견되었습니다. 특정 SCSI IOCTL 명령을 통해 ATA_NOP 명령을 실행할 경우, ata_pio_sector() 함수가 메모리의 임의 영역을 덮어쓸 수 있습니다.
💡 쉬운 설명
컴퓨터의 저장 장치를 제어하는 프로그램에서 정해진 메모리 공간보다 더 많은 데이터를 쓰려고 시도하는 오류가 있습니다. 이로 인해 시스템의 중요한 데이터가 망가지거나 해커가 시스템을 장악할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
ata: libata-sff: Ensure that we cannot write outside the allocated buffer
reveliofuzzing reported that a SCSI_IOCTL_SEND_COMMAND ioctl with out_len
set to 0xd42, SCSI command set to ATA_16 PASS-THROUGH, ATA command set to
ATA_NOP, and protocol set to ATA_PROT_PIO, can cause ata_pio_sector() to
write outside the allocated buffer, overwriting random memory.
While a ATA device is supposed to abort a ATA_NOP command, there does seem
to be a bug either in libata-sff or QEMU, where either this status is not
set, or the status is cleared before read by ata_sff_hsm_move().
Anyway, that is most likely a separate bug.
Looking at __atapi_pio_bytes(), it already has a safety check to ensure
that __atapi_pio_bytes() cannot write outside the allocated buffer.
Add a similar check to ata_pio_sector(), such that also ata_pio_sector()
cannot write outside the allocated buffer.
📍 영향받는 시스템
Linux Kernel (libata-sff 모듈을 사용하는 시스템)
⚔️ 공격 벡터
특수하게 조작된 SCSI_IOCTL_SEND_COMMAND ioctl 호출을 통한 로컬 공격
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.