CVE-2022-2566 Heap-memory write in FFMPEG
HighCVSS 7.8
EPSS 0.83%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- Debian
Description
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
Upgrade path
4 packages: 3 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ffmpeg/ffmpeg | < c953baa084607dd1d84c3bfcce3cf6a87c3e6e05; = 5.1; >= 5.1; >= ab77b878f1205225c6de1370fb0e998dbcc8bc69 | c953baa084607dd1d84c3bfcce3cf6a87c3e6e05 | Partially fixed |
| debian/ffmpeg(Debian 12) | < 7:5.1.1-1 | 7:5.1.1-1 | Fixed |
| debian/ffmpeg(Debian 13) | < 7:5.1.1-1 | 7:5.1.1-1 | Fixed |
| debian/ffmpeg(Debian 14) | < 7:5.1.1-1 | 7:5.1.1-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| ffmpeg/ffmpeg | >= 5.1 | No fix listed |
| ffmpeg/ffmpeg | >= ab77b878f1205225c6de1370fb0e998dbcc8bc69 | No fix listed |
| ffmpeg/ffmpeg | < c953baa084607dd1d84c3bfcce3cf6a87c3e6e05 | c953baa084607dd1d84c3bfcce3cf6a87c3e6e05 |
| ffmpeg/ffmpeg | = 5.1 | No fix listed |
| debian/ffmpeg(Debian:12) | < 7:5.1.1-1 | 7:5.1.1-1 |
| debian/ffmpeg(Debian:14) | < 7:5.1.1-1 | 7:5.1.1-1 |
| debian/ffmpeg(Debian:13) | < 7:5.1.1-1 | 7:5.1.1-1 |
References
- Debian Security Tracker CVE-2022-2566 vendor-advisory
- github.com patch third-party-advisory