CVE-2024-31578: Use After Free

Published Apr 17, 2024
·
Updated

FFmpeg version n6.1.1 was discovered to contain a heap use-after-free via the avhwframectxinit function.

Affected Software

15 affected componentsFixes available
ubuntu/ffmpeg<7:3.4.11-0ubuntu0.1+
7:3.4.11-0ubuntu0.1+
ubuntu/ffmpeg<7:4.2.7-0ubuntu0.1+
7:4.2.7-0ubuntu0.1+
ubuntu/ffmpeg<7:4.4.2-0ubuntu0.22.04.1+
7:4.4.2-0ubuntu0.22.04.1+
ubuntu/ffmpeg<7:6.0-6ubuntu1.1
7:6.0-6ubuntu1.1
ubuntu/ffmpeg<7:6.1.1-3ubuntu5+
7:6.1.1-3ubuntu5+
FFmpeg FFmpeg<7.0
Fedoraproject Fedora=38
Fedoraproject Fedora=39
Fedoraproject Fedora=40
debian/ffmpeg*
debian/ffmpeg<7:7.0.1-3
7:7.0.1-3
debian/ffmpeg<7:7.0.1-3
7:7.0.1-3
debian/ffmpeg<=7:5.1.9-0+deb12u1
7:7.1.5-0+deb13u17:9.0.2-4
alpine/ffmpeg<7.1.1-r0
7.1.1-r0
alpine/ffmpeg<7.1.1-r0
7.1.1-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:3.4.11-0ubuntu0.1+
  2. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:4.2.7-0ubuntu0.1+
  3. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:4.4.2-0ubuntu0.22.04.1+
  4. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:6.0-6ubuntu1.1
  5. Upgrade

    Upgrade ubuntu/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:6.1.1-3ubuntu5+
  6. Upgrade

    Upgrade debian/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:7.0.1-3
  7. Upgrade

    Upgrade debian/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7:7.1.5-0+deb13u1Fixed in 7:9.0.2-4
  8. Upgrade

    Upgrade alpine/ffmpeg to a version that resolves this vulnerability.

    Fixed in 7.1.1-r0

Event History

Apr 17, 2024
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via OSV·12:00 AM
DescriptionSeverity
Data Sourced
via NVD·02:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 2, 2026
Data Sourced
via OSV·12:01 PM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2024-31578?

CVE-2024-31578 is classified as a critical vulnerability due to its potential to cause a heap use-after-free condition.

2

How do I fix CVE-2024-31578?

To mitigate CVE-2024-31578, you should upgrade to a fixed version of FFmpeg as specified for your distribution.

3

Which versions of FFmpeg are affected by CVE-2024-31578?

FFmpeg version n6.1.1 is specifically affected by CVE-2024-31578, as well as other versions prior to the recommended remedial updates.

4

What platforms are impacted by CVE-2024-31578?

CVE-2024-31578 impacts Ubuntu and Debian distributions, particularly the outlined versions of the FFmpeg package.

5

Is there a known exploit for CVE-2024-31578?

While specific exploits for CVE-2024-31578 were not publicly disclosed, the nature of the vulnerability could lead to exploitation if left unpatched.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203