🇰🇷 한글 설명
Linux 커널의 nuvoton npcm-video 드라이버에서 메모리 누수 취약점이 발견되었습니다. 장치 초기화 실패 시 또는 장치 제거 시 할당된 메모리와 예약된 메모리 자원이 적절히 해제되지 않아 시스템 자원이 소모됩니다.
💡 쉬운 설명
컴퓨터 부품을 작동시킬 때 사용하는 메모리를 사용 후 제대로 돌려주지 않아 발생하는 문제입니다. 이 문제가 반복되면 컴퓨터의 메모리가 부족해져 시스템 성능이 떨어지거나 멈출 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
media: nuvoton: npcm-video: fix memory leaks in probe and remove
npcm_video_probe() allocates the npcm_video structure with kzalloc_obj()
but never frees it on any probe error path or in npcm_video_remove(),
leaking the allocation on every failed probe and every normal unbind.
Additionally, when npcm_video_setup_video() fails, the reserved memory
association established by of_reserved_mem_device_init() in
npcm_video_init() is not released, leaking the rmem_assigned_device
entry on the global list.
Fix both by adding kfree(video) to all probe error paths and to
npcm_video_remove(), and adding the missing
of_reserved_mem_device_release() call when npcm_video_setup_video()
fails.
📍 영향받는 시스템
Linux kernel (nuvoton npcm-video driver 포함 버전)
⚔️ 공격 벡터
로컬 공격자가 장치 드라이버의 초기화 또는 제거 과정을 반복 유도하여 메모리 고갈 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 해당 취약점이 해결된 패치 버전인지 확인