CVE-2024-47606
CRITICAL9.8EPSS 0.72%GHSL-2024-166: GStreamer Integer overflows in MP4/MOV demuxer and memory allocator that can lead to out-of-bounds writes
描述
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.
受影響套件(7)
- Bitnami/javafrom 0, < 1.8.0, >= 1.9.0, < 8.0.451
- Bitnami/java-minfrom 0, < 1.8.0, >= 1.9.0, < 8.0.451
- Bitnami/jrefrom 0, < 1.8.0, >= 1.9.0, < 8.0.451
- Debian/gst-plugins-good1.0from 0, < 1.18.4-2+deb11u3
- Debian/gstreamer1.0from 0, < 1.22.0-2+deb12u1
- Debian/gstreamer1.0from 0, < 1.18.4-2.1+deb11u1
- Debian/gstreamer1.0from 0, < 1.18.4-2.1+deb11u1
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 4.0 | — | 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/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 |
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
參考連結(8)
- ADVISORYhttps://security-tracker.debian.org/tracker/CVE-2024-47606
- WEBhttps://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8032.patch
- WEBhttps://gstreamer.freedesktop.org/security/sa-2024-0014.html
- WEBhttps://lists.debian.org/debian-lts-announce/2024/12/msg00016.html
- WEBhttps://lists.debian.org/debian-lts-announce/2025/02/msg00035.html
- WEBhttps://nvd.nist.gov/vuln/detail/CVE-2024-47606
- WEBhttps://securitylab.github.com/advisories/GHSL-2024-166_Gstreamer/
- WEBhttps://security.netapp.com/advisory/ntap-20250418-0003/