CVE-2022-2566

Heap-memory write in FFMPEG

State
Published
Severity
9.0 Critical
Published
Sep 23, 2022
Updated
Apr 21, 2025
Reserved
Jul 28, 2022

Read the record on cve.org

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

Scores

CVSSScoreVectorSource
3.19.0 CriticalCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:HGoogle

Weaknesses

Affected Products

ProductVersions
FFMPEGFFMPEG
  • 5.1 to before unspecifiedAffected
  • ab77b878f1205225c6de1370fb0e998dbcc8bc69 to before unspecifiedAffected
  • before c953baa084607dd1d84c3bfcce3cf6a87c3e6e05Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.