🇰🇷 한글 설명
Linux 커널의 spi-qpic-snand 드라이버에서 프로브 오류 발생 시 또는 장치 제거 시 ECC 엔진이 적절히 해제되지 않는 취약점이 발견되었습니다. 이로 인해 메모리 해제 후 사용(Use-After-Free) 문제가 발생할 수 있어, 오류 경로 및 장치 제거 시 엔진 해제 로직을 추가하여 해결되었습니다.
💡 쉬운 설명
장치를 연결하거나 제거할 때 시스템이 사용하던 메모리 자원을 제대로 정리하지 못하는 문제입니다. 이 상태가 지속되면 시스템이 불안정해지거나 보안상 취약점이 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
spi: spi-qpic-snand: unregister ECC engine on probe error and device remove
The on-host hardware ECC engine remains registered both when
the spi_register_controller() function returns with an error
and also on device removal.
Change the qcom_spi_probe() function to unregister the engine
on the error path, and add the missing unregistering call to
qcom_spi_remove() to avoid possible use-after-free issues.
📍 영향받는 시스템
Linux kernel (spi-qpic-snand driver 포함 버전)
⚔️ 공격 벡터
장치의 비정상적인 연결/해제 또는 프로브 오류를 유도하여 메모리 오류 발생
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인