🇰🇷 한글 설명
Linux 커널의 amlogic-spisg SPI 드라이버에서 aml_spisg_probe() 함수 실행 중 메모리 누수가 발생하는 취약점입니다. 드라이버 프로브 실패 시 할당된 컨트롤러를 해제하지 않아 메모리가 지속적으로 소모됩니다. 이를 해결하기 위해 devm_spi_alloc_host() 및 devm_spi_alloc_target()을 사용하도록 수정되었습니다.
💡 쉬운 설명
장치를 작동시키려다 실패할 때 사용했던 메모리를 제대로 돌려주지 않고 계속 붙잡고 있는 문제입니다. 이 현상이 반복되면 시스템의 메모리가 부족해져 성능 저하나 시스템 중단이 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
spi: amlogic-spisg: Fix memory leak in aml_spisg_probe()
In aml_spisg_probe(), ctlr is allocated by
spi_alloc_target()/spi_alloc_host(), but fails to call
spi_controller_put() in several error paths. This leads
to a memory leak whenever the driver fails to probe after
the initial allocation.
Convert to use devm_spi_alloc_host()/devm_spi_alloc_target()
to fix the memory leak.
📍 영향받는 시스템
amlogic-spisg SPI 드라이버를 사용하는 Linux 커널 시스템
⚔️ 공격 벡터
직접적인 공격은 어려우나, 드라이버 로드 실패를 반복 유도하여 시스템 자원을 고갈시키는 DoS(서비스 거부) 공격이 가능함
🛡️ 대응 방법
해당 취약점이 수정된 최신 버전의 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 보안 업데이트 버전인지 확인