🇰🇷 한글 설명
Linux 커널의 media: chips-media: wave5 드라이버에서 메모리 누수 취약점이 발견되었습니다. wave5_vpu_open_enc() 및 wave5_vpu_open_dec() 함수에서 codec_info 할당에 실패할 경우, 이전에 할당된 vpu 인스턴스를 해제하지 않고 종료되어 메모리가 누수됩니다.
💡 쉬운 설명
컴퓨터의 비디오 처리 장치를 사용할 때, 메모리 할당 과정에서 오류가 발생하면 사용하던 메모리를 제대로 돌려주지 않고 버리는 문제가 있습니다. 이 문제가 반복되면 시스템의 메모리가 점차 부족해질 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: chips-media: wave5: Fix memory leak on codec_info allocation failure
In wave5_vpu_open_enc() and wave5_vpu_open_dec(), a vpu instance is
allocated via kzalloc(). If the subsequent allocation for inst->codec_info
fails, the functions return -ENOMEM without freeing the previously
allocated instance, causing a memory leak.
Fix this by calling kfree() on the instance in this error path to ensure
it is properly released.
📍 영향받는 시스템
Linux kernel (media: chips-media: wave5 드라이버 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 의도적으로 메모리 할당 실패를 유도하여 시스템 자원을 고갈시키는 DoS(서비스 거부) 공격 가능
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트하거나 패치를 적용하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.