CVEfocus › CVE database › CVE-2024-47540

CVE-2024-47540GHSL-2024-197: GStreamer uses uninitialized stack memory in Matroska/WebM demuxer

CVSS 8.6 HighEPSS 1.1% (higher than 66% of CVEs)Published 2024-12-11Updated 2025-11-03Assigner: GitHub_M

GStreamer is a library for constructing graphs of media-handling components. An uninitialized stack variable vulnerability has been identified in the gst_matroska_demux_add_wvpk_header function within matroska-demux.c. When size < 4, the program calls gst_buffer_unmap with an uninitialized map variable. Then, in the gst_memory_unmap function, the program will attempt to unmap the buffer using the uninitialized map variable, causing a function pointer hijack, as it will jump to mem->allocator->mem_unmap_full or mem->allocator->mem_unmap. This vulnerability could allow an attacker to hijack the execution flow, potentially leading to code execution. This vulnerability is fixed in 1.24.10.

CWE-457

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

21Fixed
5Fix pending
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04gst-plugins-good1.0Not affected
vulnerable_code_not_present
Ubuntu 25.10gst-plugins-good1.0Not affected
vulnerable_code_not_present
Ubuntu 24.04gst-plugins-good1.0Fixed1.24.2-1ubuntu1.1UBUNTU-CVE-2024-47540
Ubuntu 22.04gst-plugins-good1.0Fixed1.20.3-0ubuntu1.3UBUNTU-CVE-2024-47540
Ubuntu 20.04gst-plugins-good1.0Fixed1.16.3-0ubuntu1.3UBUNTU-CVE-2024-47540
Ubuntu 18.04gst-plugins-good1.0Fix pendingUBUNTU-CVE-2024-47540
Ubuntu 16.04gst-plugins-good0.10Fix pendingUBUNTU-CVE-2024-47540
Ubuntu 16.04gst-plugins-good1.0Fix pendingUBUNTU-CVE-2024-47540
Debian 14gst-plugins-good1.0Fixed1.24.10-1DEBIAN-CVE-2024-47540
Debian 13gst-plugins-good1.0Fixed1.24.10-1DEBIAN-CVE-2024-47540
Debian 12gst-plugins-good1.0Fixed1.22.0-5+deb12u2DEBIAN-CVE-2024-47540
Red Hat Enterprise Linux 10gstreamer1-plugins-goodFix pending
Affected
Red Hat Enterprise Linux 10gstreamer1-plugins-good-gtkFix pending
Affected
Red Hat Enterprise Linux 9gstreamer1-plugins-goodFixed0:1.22.1-3.el9_5RHSA-2024:11122
Red Hat Enterprise Linux 9gstreamer1-plugins-good-gtkFixed0:1.22.1-3.el9_5RHSA-2024:11122
Red Hat Enterprise Linux 8gstreamer1-plugins-goodFixed0:1.16.1-5.el8_10RHSA-2024:11299
Red Hat Enterprise Linux 8gstreamer1-plugins-good-gtkFixed0:1.16.1-5.el8_10RHSA-2024:11299
AlmaLinux 9gstreamer1-plugins-goodFixed1.22.1-3.el9_5ALSA-2024:11122
AlmaLinux 9gstreamer1-plugins-good-gtkFixed1.22.1-3.el9_5ALSA-2024:11122
AlmaLinux 8gstreamer1-plugins-goodFixed1.16.1-5.el8_10ALSA-2024:11299
AlmaLinux 8gstreamer1-plugins-good-gtkFixed1.16.1-5.el8_10ALSA-2024:11299
Rocky Linux 9gstreamer1-plugins-goodFixed0:1.22.1-3.el9_5RLSA-2024:11122
Rocky Linux 8gstreamer1-plugins-goodFixed0:1.16.1-5.el8_10RLSA-2024:11299
Alpine Linux 3.24gst-plugins-goodFixed1.24.10-r0ALPINE-CVE-2024-47540
Alpine Linux 3.23gst-plugins-goodFixed1.24.10-r0ALPINE-CVE-2024-47540
Alpine Linux 3.22gst-plugins-goodFixed1.24.10-r0ALPINE-CVE-2024-47540
Alpine Linux 3.21gst-plugins-goodFixed1.24.10-r0ALPINE-CVE-2024-47540
Alpine Linux 3.20gst-plugins-goodFixed1.24.10-r0ALPINE-CVE-2024-47540

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.