9.8
CRITICAL
CVE-2024-47606
GStreamer qtdemux Function Pointer Hijack Vulnerability
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.

INFO

Published Date :

Dec. 12, 2024, 2:03 a.m.

Last Modified :

Dec. 18, 2024, 9:35 p.m.

Remotely Exploitable :

Yes !

Impact Score :

5.9

Exploitability Score :

3.9
Affected Products

The following products are affected by CVE-2024-47606 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Debian debian_linux
1 Gstreamer_project gstreamer
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2024-47606.

URL Resource
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032.patch Patch
https://gstreamer.freedesktop.org/security/sa-2024-0014.html Release Notes
https://securitylab.github.com/advisories/GHSL-2024-166_Gstreamer/ Third Party Advisory
https://lists.debian.org/debian-lts-announce/2024/12/msg00016.html Mailing List

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2024-47606 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2024-47606 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Dec. 18, 2024

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    Added CWE NIST CWE-191
    Added CPE Configuration OR *cpe:2.3:a:gstreamer_project:gstreamer:*:*:*:*:*:*:*:* versions up to (excluding) 1.24.10
    Added CPE Configuration OR *cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*
    Changed Reference Type https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032.patch No Types Assigned https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032.patch Patch
    Changed Reference Type https://gstreamer.freedesktop.org/security/sa-2024-0014.html No Types Assigned https://gstreamer.freedesktop.org/security/sa-2024-0014.html Release Notes
    Changed Reference Type https://lists.debian.org/debian-lts-announce/2024/12/msg00016.html No Types Assigned https://lists.debian.org/debian-lts-announce/2024/12/msg00016.html Mailing List
    Changed Reference Type https://securitylab.github.com/advisories/GHSL-2024-166_Gstreamer/ No Types Assigned https://securitylab.github.com/advisories/GHSL-2024-166_Gstreamer/ Third Party Advisory
  • CVE Modified by af854a3a-2127-422b-91ae-364da2661108

    Dec. 15, 2024

    Action Type Old Value New Value
    Added Reference https://lists.debian.org/debian-lts-announce/2024/12/msg00016.html
  • New CVE Received by [email protected]

    Dec. 12, 2024

    Action Type Old Value New Value
    Added 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.
    Added CVSS V4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
    Added CWE CWE-190
    Added Reference https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032.patch
    Added Reference https://gstreamer.freedesktop.org/security/sa-2024-0014.html
    Added Reference https://securitylab.github.com/advisories/GHSL-2024-166_Gstreamer/
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2024-47606 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2024-47606 weaknesses.

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability