{"id":"CVE-2024-47606","published":"2024-12-11T19:12:40Z","modified":"2026-11-04T00:04:21Z","title":"GHSL-2024-166: GStreamer Integer overflows in MP4/MOV demuxer and memory allocator that can lead to out-of-bounds writes","vendor":"gstreamer","product":"gstreamer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01728,"percentile":0.78139,"provenance":"source"},"cwes":[{"id":"CWE-190","name":"Integer Overflow or Wraparound"}],"references":[{"url":"https://securitylab.github.com/advisories/GHSL-2024-166_Gstreamer/","tags":["x_refsource_CONFIRM"]},{"url":"https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032.patch","tags":["x_refsource_MISC"]},{"url":"https://gstreamer.freedesktop.org/security/sa-2024-0014.html","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/12/msg00016.html","tags":[]},{"url":"https://security.netapp.com/advisory/ntap-20250418-0003/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2025/02/msg00035.html","tags":[]}],"priority":{"score":21.6,"factors":[{"name":"EPSS percentile","points":15.63},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"gstreamer","affectedVersions":[{"vendor":"gstreamer","product":"gstreamer","versions":["< 1.24.10"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-07-24T03:55:28.395401Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2024-42823","exploited":false,"provenance":"source"}}