GStreamer Uninitialized Stack Variable Vulnerability Could Lead to Code Execution
CVE-2024-47540
9.8CRITICAL
What is CVE-2024-47540?
The GStreamer library has a vulnerability located in the gst_matroska_demux_add_wvpk_header function within matroska-demux.c. This vulnerability stems from the use of an uninitialized stack variable, which occurs when the size parameter is less than 4. The issue arises when the program calls gst_buffer_unmap with this uninitialized map variable, leading to an attempt to unmap the buffer incorrectly in the gst_memory_unmap function. This flawed execution can result in a hijacked function pointer, allowing an attacker to manipulate the execution flow of the program. Consequently, this can lead to unauthorized code execution, necessitating an immediate update to GStreamer version 1.24.10 or later to mitigate this risk.
Affected Version(s)
gstreamer < 1.24.10