CVE-2024-31578 Use after free in n/a
A heap use-after-free in FFmpeg's av_hwframe_ctx_init function allows attackers to potentially execute arbitrary code or cause a denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-31578?
CVE-2024-31578 is a high-severity use after free vulnerability in Fedoraproject Fedora, published on 17 Apr 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
FFmpeg version n6.1.1 was discovered to contain a heap use-after-free via the av_hwframe_ctx_init function.
Weakness: CWE-416
Which versions are affected by CVE-2024-31578?
It affects 2 products.
Linux distribution packages (1)
ffmpeg-4 openSUSE:Tumbleweed | All versions | 4.4.4-7.1 |
Products include Fedoraproject Fedora, Ffmpeg Ffmpeg.
How do I fix CVE-2024-31578?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-31578 being exploited?
There is no known exploitation of CVE-2024-31578 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as DEBIAN-CVE-2024-31578, GHSA-56vv-v57v-fgmr, JLSEC-2025-125, ROOT-OS-DEBIAN-12-CVE-2024-31578, UBUNTU-CVE-2024-31578, openSUSE-SU-2024:13894-1.