CVE-2024-47540: GHSL-2024-197: Uninitialized variable in gst_matroska_demux_add_wvpk_header leading to function pointer overwriting in GStreamer - CVE-2024-47540
GStreamer is a library for constructing graphs of media-handling components. An uninitialized stack variable vulnerability has been identified in the gstmatroskademuxaddwvpkheader function within matroska-demux.c. When size < 4, the program calls gstbufferunmap with an uninitialized map variable. Then, in the gstmemoryunmap function, the program will attempt to unmap the buffer using the uninitialized map variable, causing a function pointer hijack, as it will jump to mem->allocator->memunmapfull or mem->allocator->memunmap. This vulnerability could allow an attacker to hijack the execution flow, potentially leading to code execution. This vulnerability is fixed in 1.24.10.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2024-47540?
CVE-2024-47540 has been classified as a high severity vulnerability due to the potential for exploitation through uninitialized stack variables.
How do I fix CVE-2024-47540?
To remediate CVE-2024-47540, update the GStreamer library to version 1.22.0-5+deb12u2 or later if using Debian.
What software is affected by CVE-2024-47540?
CVE-2024-47540 affects GStreamer versions below 1.24.11 and certain versions of the gst-plugins-good1.0 package.
What specific function is vulnerable in CVE-2024-47540?
The vulnerability in CVE-2024-47540 exists in the gst_matroska_demux_add_wvpk_header function within matroska-demux.c.
Can CVE-2024-47540 lead to remote code execution?
Yes, the exploitation of CVE-2024-47540 may lead to remote code execution due to improper handling of memory.