ffmpeg: A heap out-of-bounds memory write exists in FFMPEG since version 5.1
CVE-2022-2566 is fixed in ffmpeg on 1 platform, first by DEBIAN-CVE-2022-2566, released September 23, 2022. It is not reported as exploited. Patch Radar priority: High.
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
Where it's fixed
| Product | Fixed in | Fix | Released |
|---|---|---|---|
| Linux | |||
| ffmpeg · Debian 12.15 (bookworm) | 7:5.1.1-1 | DEBIAN-CVE-2022-2566 | Sep 23, 2022 |
| ffmpeg · Debian 13.5 (trixie) | 7:5.1.1-1 | DEBIAN-CVE-2022-2566 | Sep 23, 2022 |
| ffmpeg · Debian 14 | 7:5.1.1-1 | DEBIAN-CVE-2022-2566 | Sep 23, 2022 |
Patch Radar data is free to use with attribution. Terms and how to credit it.
Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.