🇰🇷 한글 설명
Linux 커널의 tegra241-cmdqv IOMMU 드라이버에서 devm_krealloc() 호출 후 메모리 재할당에 실패할 경우, 이미 해제된 이전 SMMU 포인터를 참조하여 발생하는 취약점입니다. 이로 인해 잘못된 메모리 참조가 발생하여 시스템 불안정성이나 보안 위협을 초래할 수 있습니다.
💡 쉬운 설명
컴퓨터 부품을 관리하는 프로그램이 메모리 공간을 넓히는 과정에서 실수를 하여, 이미 사용이 끝난 빈 공간을 다시 사용하려고 시도하는 문제입니다. 이 과정에서 시스템이 멈추거나 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
iommu/tegra241-cmdqv: Don't fall back to a freed smmu after devm_krealloc()
__tegra241_cmdqv_probe() uses devm_krealloc() to grow @smmu into the larger
tegra241_cmdqv, which frees the original @smmu once it relocates. A failure
after that returned NULL, and the caller then dereferenced the freed @smmu
on its fallback path.
Return an int and take @smmu by reference instead, then update *smmu to the
reallocated pointer after devm_krealloc() succeeds, so the caller and its
fallback path both use the live @smmu rather than the freed original.
📍 영향받는 시스템
Linux kernel (tegra241-cmdqv driver component)
⚔️ 공격 벡터
로컬 권한을 가진 공격자가 특정 하드웨어 드라이버의 메모리 재할당 과정을 유도하여 Use-After-Free 취약점 악용
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 devm_krealloc() 이후 포인터 업데이트 로직을 수정해야 함
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인