CVE-2024-47540
gstreamer1-plugins-good: uninitialized stack memory in Matroska/WebM demuxer
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (high), AlmaLinux (high), Amazon (high), Oracle (high), Rocky Linux (high), Ubuntu (medium).
Description
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.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 4.0 | gstreamer, gstreamer-devel | 1.25.1-1.ph4 |
| Photon OS 5.0 | gstreamer, gstreamer-devel | 1.25.1-1.ph5 |
| alma 8 | gstreamer1-plugins-good, gstreamer1-plugins-good-gtk | 1.16.1-5.el8_10 |
| alma 9 | gstreamer1-plugins-good, gstreamer1-plugins-good-gtk | 1.22.1-3.el9_5 |
| alpine 3.20 | gst-plugins-good | 1.24.10-r0 |
| alpine 3.21 | gst-plugins-good | 1.24.10-r0 |
| alpine 3.22 | gst-plugins-good | 1.24.10-r0 |
| alpine 3.23 | gst-plugins-good | 1.24.10-r0 |
| alpine 3.24 | gst-plugins-good | 1.24.10-r0 |
| alpine edge | gst-plugins-good | 1.24.10-r0 |
| amazon linux 2 | gstreamer1-plugins-good, gstreamer1-plugins-good-debuginfo, gstreamer1-plugins-good-gtk | 1.18.4-6.amzn2.0.4 |
| debian 11 | gst-plugins-good1.0 | 1.18.4-2+deb11u3 |
Show all 53 entries from 36 sources
| Source | Package | Fixed in |
|---|---|---|
| Photon OS 4.0 | gstreamer | 1.25.1-1.ph4 |
| Photon OS 4.0 | gstreamer-devel | 1.25.1-1.ph4 |
| Photon OS 5.0 | gstreamer | 1.25.1-1.ph5 |
| Photon OS 5.0 | gstreamer-devel | 1.25.1-1.ph5 |
| alma 8 | gstreamer1-plugins-good | 1.16.1-5.el8_10 |
| alma 8 | gstreamer1-plugins-good-gtk | 1.16.1-5.el8_10 |
| alma 9 | gstreamer1-plugins-good | 1.22.1-3.el9_5 |
| alma 9 | gstreamer1-plugins-good-gtk | 1.22.1-3.el9_5 |
| alpine 3.20 | gst-plugins-good | 1.24.10-r0 |
| alpine 3.21 | gst-plugins-good | 1.24.10-r0 |
| alpine 3.22 | gst-plugins-good | 1.24.10-r0 |
| alpine 3.23 | gst-plugins-good | 1.24.10-r0 |
| alpine 3.24 | gst-plugins-good | 1.24.10-r0 |
| alpine edge | gst-plugins-good | 1.24.10-r0 |
| amazon linux 2 | gstreamer1-plugins-good | 1.18.4-6.amzn2.0.4 |
| amazon linux 2 | gstreamer1-plugins-good-debuginfo | 1.18.4-6.amzn2.0.4 |
| amazon linux 2 | gstreamer1-plugins-good-gtk | 1.18.4-6.amzn2.0.4 |
| debian 11 | gst-plugins-good1.0 | 1.18.4-2+deb11u3 |
| debian 12 | gst-plugins-good1.0 | 1.22.0-5+deb12u2 |
| debian 13 | gst-plugins-good1.0 | 1.24.10-1 |
| debian 14 | gst-plugins-good1.0 | 1.24.10-1 |
| echo | gst-plugins-good1.0 | 1.22.0-5+deb12u2 |
| Oracle Linux 7 | gstreamer1-plugins-base | 1.10.4-2.0.1.el7 |
| Oracle Linux 7 | gstreamer1-plugins-base-devel | 1.10.4-2.0.1.el7 |
| Oracle Linux 7 | gstreamer1-plugins-base-devel-docs | 1.10.4-2.0.1.el7 |
| Oracle Linux 7 | gstreamer1-plugins-base-tools | 1.10.4-2.0.1.el7 |
| Oracle Linux 7 | gstreamer1-plugins-good | 1.10.4-2.0.1.el7 |
| Oracle Linux 8 | gstreamer1-plugins-good | 1.16.1-5.el8_10 |
| Oracle Linux 8 | gstreamer1-plugins-good-gtk | 1.16.1-5.el8_10 |
| Oracle Linux 9 | gstreamer1-plugins-good | 1.22.1-3.el9_5 |
| Oracle Linux 9 | gstreamer1-plugins-good-gtk | 1.22.1-3.el9_5 |
| rapidfort alma 10 | gstreamer1-plugins-good | no fix listed |
| rapidfort alma 10 | gstreamer1-plugins-good-gtk | no fix listed |
| rapidfort alpine 3.20 | gstreamer | 1.24.10-r0 |
| rapidfort alpine 3.21 | gstreamer | 1.24.10-r0 |
| rapidfort alpine 3.22 | gstreamer | 1.24.10-r0 |
| rapidfort alpine 3.23 | gstreamer | 1.24.10-r0 |
| rapidfort alpine 3.24 | gstreamer | 1.24.10-r0 |
| rapidfort debian 12 | gst-plugins-good1.0 | 0:1.24.10-1 |
| rapidfort debian 13 | gst-plugins-good1.0 | 0:1.24.10-1 |
| rapidfort Oracle Linux 10 | gstreamer1-plugins-good | no fix listed |
| rapidfort Oracle Linux 10 | gstreamer1-plugins-good-gtk | no fix listed |
| rapidfort Oracle Linux 9 | gstreamer1-plugins-good | 0:1.22.1-3.el9_5 |
| rapidfort Oracle Linux 9 | gstreamer1-plugins-good-gtk | 0:1.22.1-3.el9_5 |
| rocky 8 | gstreamer1-plugins-good | 1.16.1-5.el8_10 |
| rocky 8 | gstreamer1-plugins-good-gtk | 1.16.1-5.el8_10 |
| rocky 9 | gstreamer1-plugins-good | 1.22.1-3.el9_5 |
| rocky 9 | gstreamer1-plugins-good-gtk | 1.22.1-3.el9_5 |
| ubuntu 20.04 | gst-plugins-good1.0 | 1.16.3-0ubuntu1.3 |
| ubuntu 20.04-ESM | gst-plugins-good1.0 | 1.16.3-0ubuntu1.3 |
| ubuntu 22.04 | gst-plugins-good1.0 | 1.20.3-0ubuntu1.3 |
| ubuntu 24.04 | gst-plugins-good1.0 | 1.24.2-1ubuntu1.1 |
| ubuntu 24.10 | gst-plugins-good1.0 | 1.24.8-1ubuntu1.1 |
References
- https://access.redhat.com/errata/RHSA-2024:11122
- https://access.redhat.com/security/cve/CVE-2024-47540
- https://bugzilla.redhat.com/2331719
- https://bugzilla.redhat.com/2331722
- https://bugzilla.redhat.com/2331726
- https://bugzilla.redhat.com/2331753
- https://bugzilla.redhat.com/2331760
- https://bugzilla.redhat.com/show_bug.cgi?id=2331719
All 29 references
- https://bugzilla.redhat.com/show_bug.cgi?id=2331722
- https://bugzilla.redhat.com/show_bug.cgi?id=2331726
- https://bugzilla.redhat.com/show_bug.cgi?id=2331753
- https://bugzilla.redhat.com/show_bug.cgi?id=2331760
- https://creativecommons.org/licenses/by/4.0/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47537
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47539
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47540
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47606
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-47613
- https://errata.almalinux.org/9/ALSA-2024-11122.html
- https://errata.rockylinux.org/RLSA-2024:11122
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8057.patch
- https://gstreamer.freedesktop.org/security/sa-2024-0017.html
- https://linux.oracle.com/cve/CVE-2024-47540.html
- https://linux.oracle.com/errata/ELSA-2024-11344.html
- https://lists.debian.org/debian-lts-announce/2025/02/msg00035.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-47540
- https://securitylab.github.com/advisories/GHSL-2024-197_GStreamer/
- https://ubuntu.com/security/notices/USN-7176-1
- https://www.cve.org/CVERecord?id=CVE-2024-47540