🇰🇷 한글 설명
FFmpeg 3.4부터 8.1.2 버전의 vf_floodfill 비디오 필터에서 경계 외 쓰기 취약점이 발견되었습니다. 공격자가 -reinit_filter 0 옵션을 사용하여 필터그래프 재초기화를 비활성화한 상태로 크기가 변하는 비디오 스트림을 제공하면, 힙 메모리 손상이 발생하여 프로세스 충돌이나 코드 실행이 가능할 수 있습니다.
💡 쉬운 설명
동영상 처리 프로그램인 FFmpeg에서 영상 크기가 갑자기 커질 때 메모리 공간을 제대로 관리하지 못하는 오류가 있습니다. 이를 악용하면 해커가 프로그램의 제어권을 뺏거나 컴퓨터를 멈추게 할 수 있습니다.
🇺🇸 원문 (English)
FFmpeg versions 3.4 through 8.1.2 contain an out-of-bounds write vulnerability in the vf_floodfill video filter that allows attackers to corrupt heap memory by supplying a dynamically sized video stream with filtergraph reinitialization disabled via -reinit_filter 0. When config_input() allocates the points traversal stack based on initial frame dimensions and a subsequent larger frame is processed, filter_frame() performs flood-fill neighbor pushes beyond the original allocation boundary, resulting in heap corruption and process crash with potential for code execution depending on heap layout and process hardening.
📍 영향받는 시스템
FFmpeg versions 3.4 through 8.1.2
⚔️ 공격 벡터
동적 크기 변경 비디오 스트림을 이용한 vf_floodfill 필터 대상 힙 메모리 오염
🛡️ 대응 방법
FFmpeg를 최신 보안 패치가 적용된 버전으로 업데이트하거나, 필터그래프 재초기화 옵션을 활성화합니다.
🔧 검증 코드
출력된 버전이 3.4 이상 8.1.2 이하인지 확인하여 취약 여부를 판단합니다.
ffmpeg -version | grep -E 'version [0-9]+\.[0-9]+'