Integer Overflow or Wraparound Affecting ffmpeg package, versions <7:5.1.1-1


Severity

Recommended
0.0
high
0
10

Snyk's Security Team recommends NVD's CVSS assessment. Learn more

Threat Intelligence

EPSS
0.2% (59th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-FFMPEG-3024405
  • published15 Sept 2022
  • disclosed23 Sept 2022

Introduced: 15 Sep 2022

CVE-2022-2566  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade Debian:unstable ffmpeg to version 7:5.1.1-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ffmpeg package and not the ffmpeg package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

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-&gt;ctts_data[i].count to sc-&gt;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

CVSS Scores

version 3.1