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.

Severity (CVSS 3.1)9.0Critical
Exploit odds (30 days)0.8%top 42.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Debian:12ffmpeg7:5.1.1-1DEBIAN-CVE-2022-2566
Debian:13ffmpeg7:5.1.1-1DEBIAN-CVE-2022-2566
Debian:14ffmpeg7:5.1.1-1DEBIAN-CVE-2022-2566

Affected products (as reported)

VendorProductVersions
FFMPEG FFMPEG 5.1 – before unspecifiedab77b878f1205225c6de1370fb0e998dbcc8bc69 – before unspecifiedunspecified – before c953baa084607dd1d84c3bfcce3cf6a87c3e6e05

Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

References