CVE-2022-2566 Heap-memory write in FFMPEG

Critical 9.0 Published Updated

An integer overflow in FFmpeg's MP4 parsing allows remote code execution via a malicious file, requiring a patch to fix.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-2566?

CVE-2022-2566 is a critical vulnerability in Ffmpeg Ffmpeg, published on 23 Sep 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-190, CWE-122

Which versions are affected by CVE-2022-2566?

It affects 1 product.

Linux distribution packages (1)
ffmpeg-5 openSUSE:TumbleweedAll versions5.1.1-1.1

Products include Ffmpeg Ffmpeg.

How do I fix CVE-2022-2566?

Apply the vendor's patch.

Is CVE-2022-2566 being exploited?

There is no known exploitation of CVE-2022-2566 in the wild and no public exploit code.

All Ffmpeg Ffmpeg vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-2566, GHSA-m864-5788-g574, openSUSE-SU-2024:12332-1.

Is CVE-2022-2566 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free