7.8Hoch
CVE-2026-125250FFmpeg through 9.0.2 GIF Encoder Heap Buffer Overflow via shrunk_buf Remap
Beschreibung
FFmpeg through 9.0.2 contains a heap buffer overflow in the GIF encoder's gif_image_write_image() in libavcodec/gif.c because shrunk_buf is sized from the first frame's linesize. Attackers can supply PAL8 video whose frame linesize grows mid-stream, causing remap_frame_to_palette() to write past shrunk_buf and corrupt the heap during GIF transcoding.
Schwachstellentyp (CWE):
CWE-122
Daten: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Wiedergegeben wie in der Quelle, auf Englisch.
Betroffene Produkte und Versionen
Referenzen und Patches
- https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/25690 issue-tracking
- Patch Commit patch
- https://github.com/FFmpeg/FFmpeg/blob/n9.0.2/libavcodec/gif.c#L405 technical-description
- https://github.com/FFmpeg/FFmpeg product
- VulnCheck Advisory: FFmpeg through 9.0.2 GIF Encoder Heap Buffer Overflow via shrunk_buf Remap third-party-advisory