CVE-2026-40962 Integer overflow in FFmpeg

Medium 4.9 Published Updated

An integer overflow in FFmpeg's CENC subsample handling allows out-of-bounds writes, potentially leading to code execution or crashes.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-40962?

CVE-2026-40962 is a medium-severity vulnerability in Ffmpeg Ffmpeg, published on 16 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

FFmpeg before 8.1 has an integer overflow and resultant out-of-bounds write via CENC (Common Encryption) subsample data to libavformat/mov.c.

Weakness: CWE-190

Which versions are affected by CVE-2026-40962?

It affects 1 product.

Linux distribution packages (2)
ffmpeg-4 openSUSE:TumbleweedAll versions4.4.6-12.1
ffmpeg-7 openSUSE:TumbleweedAll versions7.1.3-3.1

Products include Ffmpeg Ffmpeg.

How do I fix CVE-2026-40962?

Upgrade to a fixed version.

Is CVE-2026-40962 being exploited?

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

All Ffmpeg Ffmpeg vulnerabilities

Sources

Also known as DEBIAN-CVE-2026-40962, GHSA-48wr-p98v-9w5h, JLSEC-2026-652, MINI-5289-vgw7-jmpp, MINI-8jh5-6f5v-4hw9, UBUNTU-CVE-2026-40962 and 3 more.

Is CVE-2026-40962 in your software?

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

Check your SBOMs for free