CVE-2022-2566
CVE-2022-2566 · Heap-memory write in FFMPEG
This page contains facts from public vulnerability sources. Check the original advisory before updating.
A heap out-of-bounds memory write exists in FFMPEG since version 5.1. The size calculation in `build_open_gop_key_points()` goes through all entries in the loop and adds `sc->ctts_data[i].count` to `sc->sample_offsets_count`. This can lead to an integer overflow resulting in a small allocation with `av_calloc()`. An attacker can cause remote code execution via a malicious mp4 file. We recommend upgrading past commit c953baa084607dd1d84c3bfcce3cf6a87c3e6e05
CVSS 9.0 · Critical · EPSS 0.8% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
ffmpeg
- Versions
- ≥ 5.1, < unspecified: Affected (custom)
- ≥ ab77b878f1205225c6de1370fb0e998dbcc8bc69, < unspecified: Affected (custom)
- ≥ unspecified, < c953baa084607dd1d84c3bfcce3cf6a87c3e6e05: Affected (custom)
No fix published
ffmpeg Debian:12
- Affected ranges
- ECOSYSTEM: < 7:5.1.1-1
Update to 7:5.1.1-1
ffmpeg Debian:13
- Affected ranges
- ECOSYSTEM: < 7:5.1.1-1
Update to 7:5.1.1-1
ffmpeg Debian:14
- Affected ranges
- ECOSYSTEM: < 7:5.1.1-1
Update to 7:5.1.1-1