🇰🇷 한글 설명
FFmpeg 4.4부터 8.1.2 버전의 NVIDIA NVDEC 하드웨어 디코더에서 이중 해제(double-free) 취약점이 발견되었습니다. 공격자가 조작된 비디오 파일을 제공할 경우, 메모리 오류를 유발하여 프로그램의 비정상적인 동작이나 코드 실행을 초래할 수 있습니다.
💡 쉬운 설명
특수하게 만들어진 동영상 파일을 재생할 때, 컴퓨터 메모리를 관리하는 과정에서 중복 오류가 발생하여 프로그램이 꺼지거나 해킹될 수 있는 문제입니다. NVIDIA 그래픽 카드를 사용하여 영상을 가속 재생하는 기능을 사용할 때 발생합니다.
🇺🇸 원문 (English)
FFmpeg versions 4.4 through 8.1.2 contain a double-free vulnerability in the NVIDIA NVDEC hardware decoder within libavcodec/nvdec.c that allows attackers to trigger memory corruption by supplying a crafted video file. When no decoder surfaces remain, the ff_nvdec_start_frame_sep_ref error path frees memory via nvdec_fdd_priv_free while the calling layer subsequently frees the same frame description data, resulting in a double-free of the underlying decoder context in any FFmpeg-based application using NVDEC hardware-accelerated decoding.
📍 영향받는 시스템
FFmpeg versions 4.4 through 8.1.2 (NVIDIA NVDEC 사용 시)
⚔️ 공격 벡터
조작된 비디오 파일을 FFmpeg 기반 애플리케이션을 통해 재생하도록 유도
🛡️ 대응 방법
FFmpeg를 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 버전 번호가 4.4 이상 8.1.2 이하인지 확인하여 취약 여부를 판단합니다.
ffmpeg -version | grep -E 'version [0-9]+\.[0-9]+'