Vulnerability · Published Sep 23, 2022 · Assigned by Google
CVE-2022-2566Heap-memory write in FFMPEG
Critical 9.0
In plain English
A critical-severity heap buffer overflow in FFMPEG from FFMPEG. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ffmpeg | 7:5.1.1-1 | DEBIAN-CVE-2022-2566 |
| Debian:13 | ffmpeg | 7:5.1.1-1 | DEBIAN-CVE-2022-2566 |
| Debian:14 | ffmpeg | 7:5.1.1-1 | DEBIAN-CVE-2022-2566 |
Affected products (as reported)
Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H