Skip to content
OpenAdvisories
High · 8.6 CVE-2024-47606 EUVD-2024-42823

GHSL-2024-166: GStreamer Integer overflows in MP4/MOV demuxer and memory allocator that can lead to out-of-bounds writes

Published Dec 11, 2024 · Updated Nov 4, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
gstreamer gstreamer < 1.24.10 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 gstreamer1.0 +1 1.24.10-1 —
Debian 13 gstreamer1.0 +1 1.24.10-1 —
Debian 12 gst-plugins-good1.0 1.22.0-5+deb12u2 DSA-5838-1
Debian 12 gstreamer1.0 1.22.0-2+deb12u1 DSA-5832-1
Debian 11 gst-plugins-good1.0 1.18.4-2+deb11u3 DLA-4071-1
Debian 11 gstreamer1.0 1.18.4-2.1+deb11u1 DLA-3994-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS gst-plugins-good1.0 1.24.2-1ubuntu1.1 USN-7176-1
Ubuntu 24.04 LTS gstreamer1.0 1.24.2-1ubuntu0.1 USN-7174-1
Ubuntu 22.04 LTS gst-plugins-good1.0 1.20.3-0ubuntu1.3 USN-7176-1
Ubuntu 22.04 LTS gstreamer1.0 1.20.3-0ubuntu1.1 USN-7174-1
Ubuntu 20.04 LTS gst-plugins-good1.0 1.16.3-0ubuntu1.3 USN-7176-1
Ubuntu 20.04 LTS gstreamer1.0 1.16.3-0ubuntu1.2 USN-7174-1
Ubuntu 18.04 LTS gstreamer1.0 No fix yet —
Ubuntu 16.04 LTS gstreamer0.10 +1 No fix yet —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 14.04 LTS gstreamer0.10 No fix yet —
Ubuntu Pro 18.04 LTS gst-plugins-good1.0 No fix yet —
Ubuntu Pro 16.04 LTS gstreamer1.0 +1 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 gstreamer1-plugins-good +1 1.22.1-3.el9_5 RHSA-2024:11122
RHEL 8 gstreamer1-plugins-good +1 1.16.1-5.el8_10 RHSA-2024:11299
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS gstreamer1-plugins-good +1 1.22.1-3.el9_4 RHSA-2024:11121
RHEL 9.2 EUS gstreamer1-plugins-good +1 1.18.4-7.el9_2 RHSA-2024:11119
RHEL 9.0 E4S gstreamer1-plugins-good +1 1.18.4-6.el9_0 RHSA-2024:11298
RHEL 8.8 EUS gstreamer1-plugins-good +1 1.16.1-4.el8_8 RHSA-2024:11348
RHEL 8.6 TUS gstreamer1-plugins-good +1 1.16.1-3.el8_6 RHSA-2024:11149
RHEL 8.6 E4S gstreamer1-plugins-good +1 1.16.1-3.el8_6 RHSA-2024:11149
RHEL 8.6 AUS gstreamer1-plugins-good +1 1.16.1-3.el8_6 RHSA-2024:11149
RHEL 8.4 TUS gstreamer1-plugins-good +1 1.16.1-3.el8_4 RHSA-2024:11346
RHEL 8.4 E4S gstreamer1-plugins-good +1 1.16.1-3.el8_4 RHSA-2024:11346
RHEL 8.4 AUS gstreamer1-plugins-good +1 1.16.1-3.el8_4 RHSA-2024:11346
RHEL 8.2 AUS gstreamer1-plugins-good +1 1.16.1-2.el8_2 RHSA-2024:11148
RHEL 7 ELS gstreamer1-plugins-base +4 1.10.4-3.el7_9 RHSA-2024:11344

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 gstreamer1-plugins-good +1 1.22.1-3.el9_5 ALSA-2024:11122
AlmaLinux 8 gstreamer1-plugins-good +1 1.16.1-5.el8_10 ALSA-2024:11299

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 gstreamer1-plugins-good 1.22.1-3.el9_5 RLSA-2024:11122
Rocky Linux 8 gstreamer1-plugins-good 1.16.1-5.el8_10 RLSA-2024:11299
ReleasePackageFixed inAdvisory
SLES 15 SP6 gstreamer +1 1.24.0-150600.3.3.1 SUSE-SU-2025:0062-1, SUSE-SU-2025:0055-1
SLES 15 SP5 gstreamer 1.22.0-150500.3.5.1 SUSE-SU-2025:0053-1
SLES 15 SP5 gstreamer-plugins-good 1.22.0-150500.4.6.1 SUSE-SU-2025:0064-1
SLES 15 SP4 gstreamer 1.20.1-150400.3.3.1 SUSE-SU-2025:0070-1
SLES 15 SP4 gstreamer-plugins-good 1.20.1-150400.3.9.1 SUSE-SU-2025:0067-1
SLES 15 SP3 gstreamer 1.16.3-150200.3.6.1 SUSE-SU-2025:02034-1
SLES 15 SP3 gstreamer-plugins-good 1.16.3-150200.3.17.1 SUSE-SU-2025:02055-1
SLES 12 SP5 gstreamer 1.8.3-10.12.1 SUSE-SU-2025:0051-1
SLES 12 SP5 gstreamer-plugins-good 1.8.3-16.12.1 SUSE-SU-2025:0063-1, SUSE-SU-2025:00063-1
Show 15 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 gstreamer 1.22.0-150500.3.5.1 SUSE-SU-2025:0053-1
SLES for SAP 15 SP5 gstreamer-plugins-good 1.22.0-150500.4.6.1 SUSE-SU-2025:0064-1
SLES for SAP 15 SP4 gstreamer 1.20.1-150400.3.3.1 SUSE-SU-2025:0070-1
SLES for SAP 15 SP4 gstreamer-plugins-good 1.20.1-150400.3.9.1 SUSE-SU-2025:0067-1
SLES for SAP 15 SP3 gstreamer 1.16.3-150200.3.6.1 SUSE-SU-2025:02034-1
SLES for SAP 15 SP3 gstreamer-plugins-good 1.16.3-150200.3.17.1 SUSE-SU-2025:02055-1
SLE Micro 6.1 gstreamer 1.24.7-slfo.1.1_2.1 SUSE-SU-2025:20240-1
SLE Micro 6.0 gstreamer 1.22.9-2.1 SUSE-SU-2025:20693-1
SLE Micro 5.5 gstreamer 1.22.0-150500.3.5.1 SUSE-SU-2025:0053-1
SLE Micro 5.4 gstreamer 1.20.1-150400.3.3.1 SUSE-SU-2025:0070-1
SLE Micro 5.3 gstreamer 1.20.1-150400.3.3.1 SUSE-SU-2025:0070-1
SLE Micro 5.2 gstreamer 1.16.3-150200.3.6.1 SUSE-SU-2025:02034-1
SLE HPC 15 SP5 gstreamer 1.22.0-150500.3.5.1 SUSE-SU-2025:0053-1
SLE HPC 15 SP5 gstreamer-plugins-good 1.22.0-150500.4.6.1 SUSE-SU-2025:0064-1
SLE HPC 15 SP4 gstreamer 1.20.1-150400.3.3.1 SUSE-SU-2025:0070-1
SLE HPC 15 SP4 gstreamer-plugins-good 1.20.1-150400.3.9.1 SUSE-SU-2025:0067-1
SLE HPC 15 SP3 gstreamer 1.16.3-150200.3.6.1 SUSE-SU-2025:02034-1
SLE HPC 15 SP3 gstreamer-plugins-good 1.16.3-150200.3.17.1 SUSE-SU-2025:02055-1
SUSE Manager Server 4.3 gstreamer 1.20.1-150400.3.3.1 SUSE-SU-2025:0070-1
SUSE Manager Server 4.3 gstreamer-plugins-good 1.20.1-150400.3.9.1 SUSE-SU-2025:0067-1
SUSE Manager Proxy 4.3 gstreamer 1.20.1-150400.3.3.1 SUSE-SU-2025:0070-1
SUSE Manager Proxy 4.3 gstreamer-plugins-good 1.20.1-150400.3.9.1 SUSE-SU-2025:0067-1
SUSE Enterprise Storage 7.1 gstreamer 1.16.3-150200.3.6.1 SUSE-SU-2025:02034-1
SUSE Enterprise Storage 7.1 gstreamer-plugins-good 1.16.3-150200.3.17.1 SUSE-SU-2025:02055-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gstreamer +1 1.24.10-2.1 openSUSE-SU-2024:14578-1, openSUSE-SU-2024:14576-1
openSUSE Leap 15.6 gstreamer +1 1.24.0-150600.3.3.1 SUSE-SU-2025:0062-1, SUSE-SU-2025:0055-1
ReleasePackageFixed inAdvisory
Alpine v3.24 gst-plugins-good 1.24.10-r0 —
Alpine v3.23 gst-plugins-good 1.24.10-r0 —
Alpine v3.22 gst-plugins-good 1.24.10-r0 —
Alpine v3.21 gst-plugins-good 1.24.10-r0 —
Alpine v3.20 gst-plugins-good 1.24.10-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 gstreamer1 +1 1.18.4-4.amzn2.0.2 ALAS2-2025-2746
Amazon Linux 2 gstreamer1-plugins-good +1 1.18.4-6.amzn2.0.6 ALAS2-2025-2776

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 gstreamer1 No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 gstreamer1-plugins-good +1 1.22.1-3.el9_5 ELSA-2024-11122
Oracle Linux 8 gstreamer1-plugins-good +1 1.16.1-5.el8_10 ELSA-2024-11299
Oracle Linux 7 gstreamer1-plugins-base +4 1.10.4-2.0.1.el7 ELSA-2024-11344

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling openjdk-7-jre-lib No fix yet —

Advisories 44

References