🇰🇷 한글 설명
Linux 커널의 aacraid SCSI 드라이버에서 하드웨어 초기화 실패 시 발생하는 이중 해제(double-free) 취약점입니다. aac_init_adapter() 함수가 메모리 할당 후 실패할 때 해당 포인터를 초기화하지 않아, 이후 에러 처리 과정에서 이미 해제된 메모리를 다시 해제하려고 시도하게 됩니다.
💡 쉬운 설명
컴퓨터 부품을 인식하는 과정에서 오류가 발생했을 때, 이미 정리한 메모리를 또 정리하려고 시도하면서 시스템이 충돌하거나 보안 문제가 생길 수 있는 결함입니다. 이로 인해 시스템이 갑자기 멈추거나 해커가 시스템 권한을 탈취할 위험이 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
scsi: aacraid: Fix double-free on probe failure
aac_probe_one() calls hardware-specific init functions through the
aac_driver_ident::init pointer, all of which eventually call down to
aac_init_adapter().
If aac_init_adapter() fails after allocating memory for aac_dev::queues,
it frees the memory but does not clear that member.
After the hardware-specific init function returns an error,
aac_probe_one() goes down an error path that frees the memory pointed to
by aac_dev::queues, resulting.in a double-free.
📍 영향받는 시스템
aacraid 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
하드웨어 초기화 실패를 유도하는 특수한 상황을 통해 메모리 오류를 발생시킴
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인