Rapid7 Vulnerability & Exploit Database

FFmpeg: CVE-2022-2566: Integer Overflow or Wraparound

Free InsightVM Trial No Credit Card Necessary
Watch Demo See how it all works
Back to Search

FFmpeg: CVE-2022-2566: Integer Overflow or Wraparound

Severity
4
CVSS
(AV:L/AC:M/Au:N/C:P/I:P/A:P)
Published
09/01/2022
Created
09/01/2022
Added
09/01/2022
Modified
06/29/2023

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

Solution(s)

  • ffmpeg-upgrade-5_1_1
  • ffmpeg-upgrade-6_0

With Rapid7 live dashboards, I have a clear view of all the assets on my network, which ones can be exploited, and what I need to do in order to reduce the risk in my environment in real-time. No other tool gives us that kind of value and insight.

– Scott Cheney, Manager of Information Security, Sierra View Medical Center

;