CVE-2024-47606GHSL-2024-166: GStreamer Integer overflows in MP4/MOV demuxer and memory allocator that…
GStreamer is a library for constructing graphs of media-handling components. An integer underflow has been detected in the function qtdemux_parse_theora_extension within qtdemux.c. The vulnerability occurs due to an underflow of the gint size variable, which causes size to hold a large unintended value when cast to an unsigned integer. This 32-bit negative value is then cast to a 64-bit unsigned integer (0xfffffffffffffffa) in a subsequent call to gst_buffer_new_and_alloc. The function gst_buffer_new_allocate then attempts to allocate memory, eventually calling _sysmem_new_block. The function _sysmem_new_block adds alignment and header size to the (unsigned) size, causing the overflow of the 'slice_size' variable. As a result, only 0x89 bytes are allocated, despite the large input size. When the following memcpy call occurs in gst_buffer_fill, the data from the input file will overwrite the content of the GstMapInfo info structure. Finally, during the call to gst_memory_unmap, the overwritten memory may cause a function pointer hijack, as the mem->allocator->mem_unmap_full function is called with a corrupted pointer. This function pointer overwrite could allow an attacker to alter the execution flow of the program, leading to arbitrary code execution. This vulnerability is fixed in 1.24.10.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | gst-plugins-good1.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | gstreamer1.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | gst-plugins-good1.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | gstreamer1.0 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | gst-plugins-good1.0 | Fixed | 1.24.2-1ubuntu1.1 | UBUNTU-CVE-2024-47606 |
| Ubuntu 24.04 | gstreamer1.0 | Fixed | 1.24.2-1ubuntu0.1 | UBUNTU-CVE-2024-47606 |
| Ubuntu 22.04 | gst-plugins-good1.0 | Fixed | 1.20.3-0ubuntu1.3 | UBUNTU-CVE-2024-47606 |
| Ubuntu 22.04 | gstreamer1.0 | Fixed | 1.20.3-0ubuntu1.1 | UBUNTU-CVE-2024-47606 |
| Ubuntu 20.04 | gst-plugins-good1.0 | Fixed | 1.16.3-0ubuntu1.3 | UBUNTU-CVE-2024-47606 |
| Ubuntu 20.04 | gstreamer1.0 | Fixed | 1.16.3-0ubuntu1.2 | UBUNTU-CVE-2024-47606 |
| Ubuntu 18.04 | gst-plugins-good1.0 | Fix pending | UBUNTU-CVE-2024-47606 | |
| Ubuntu 18.04 | gstreamer1.0 | Fix pending | UBUNTU-CVE-2024-47606 | |
| Ubuntu 16.04 | gst-plugins-good0.10 | Fix pending | UBUNTU-CVE-2024-47606 | |
| Ubuntu 16.04 | gst-plugins-good1.0 | Fix pending | UBUNTU-CVE-2024-47606 | |
| Ubuntu 16.04 | gstreamer0.10 | Fix pending | UBUNTU-CVE-2024-47606 | |
| Ubuntu 16.04 | gstreamer1.0 | Fix pending | UBUNTU-CVE-2024-47606 | |
| Ubuntu 14.04 | gstreamer0.10 | Fix pending | UBUNTU-CVE-2024-47606 | |
| Debian 14 | gst-plugins-good1.0 | Fixed | 1.24.10-1 | DEBIAN-CVE-2024-47606 |
| Debian 14 | gstreamer1.0 | Fixed | 1.24.10-1 | DEBIAN-CVE-2024-47606 |
| Debian 13 | gst-plugins-good1.0 | Fixed | 1.24.10-1 | DEBIAN-CVE-2024-47606 |
| Debian 13 | gstreamer1.0 | Fixed | 1.24.10-1 | DEBIAN-CVE-2024-47606 |
| Debian 12 | gst-plugins-good1.0 | Fixed | 1.22.0-5+deb12u2 | DEBIAN-CVE-2024-47606 |
| Debian 12 | gstreamer1.0 | Fixed | 1.22.0-2+deb12u1 | DEBIAN-CVE-2024-47606 |
| Red Hat Enterprise Linux 10 | gstreamer1-plugins-good | Fix pending Affected | ||
| Red Hat Enterprise Linux 10 | gstreamer1-plugins-good-gtk | Fix pending Affected | ||
| Red Hat Enterprise Linux 9 | gstreamer1-plugins-good | Fixed | 0:1.22.1-3.el9_5 | RHSA-2024:11122 |
| Red Hat Enterprise Linux 9 | gstreamer1-plugins-good-gtk | Fixed | 0:1.22.1-3.el9_5 | RHSA-2024:11122 |
| Red Hat Enterprise Linux 8 | gstreamer1-plugins-good | Fixed | 0:1.16.1-5.el8_10 | RHSA-2024:11299 |
| Red Hat Enterprise Linux 8 | gstreamer1-plugins-good-gtk | Fixed | 0:1.16.1-5.el8_10 | RHSA-2024:11299 |
| AlmaLinux 9 | gstreamer1-plugins-good | Fixed | 1.22.1-3.el9_5 | ALSA-2024:11122 |
| AlmaLinux 9 | gstreamer1-plugins-good-gtk | Fixed | 1.22.1-3.el9_5 | ALSA-2024:11122 |
| AlmaLinux 8 | gstreamer1-plugins-good | Fixed | 1.16.1-5.el8_10 | ALSA-2024:11299 |
| AlmaLinux 8 | gstreamer1-plugins-good-gtk | Fixed | 1.16.1-5.el8_10 | ALSA-2024:11299 |
| Rocky Linux 9 | gstreamer1-plugins-good | Fixed | 0:1.22.1-3.el9_5 | RLSA-2024:11122 |
| Rocky Linux 8 | gstreamer1-plugins-good | Fixed | 0:1.16.1-5.el8_10 | RLSA-2024:11299 |
| Alpine Linux 3.24 | gst-plugins-good | Fixed | 1.24.10-r0 | ALPINE-CVE-2024-47606 |
| Alpine Linux 3.23 | gst-plugins-good | Fixed | 1.24.10-r0 | ALPINE-CVE-2024-47606 |
| Alpine Linux 3.22 | gst-plugins-good | Fixed | 1.24.10-r0 | ALPINE-CVE-2024-47606 |
| Alpine Linux 3.21 | gst-plugins-good | Fixed | 1.24.10-r0 | ALPINE-CVE-2024-47606 |
| Alpine Linux 3.20 | gst-plugins-good | Fixed | 1.24.10-r0 | ALPINE-CVE-2024-47606 |
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.
- gstreamer: affected: < 1.24.10
References
- https://securitylab.github.com/advisories/GHSL-2024-166_Gstreamer/
- https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032.patch
- https://gstreamer.freedesktop.org/security/sa-2024-0014.html
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.