CVE-2024-47540

NameCVE-2024-47540
DescriptionGStreamer is a library for constructing graphs of media-handling components. An uninitialized stack variable vulnerability has been identified in the gst_matroska_demux_add_wvpk_header function within matroska-demux.c. When size < 4, the program calls gst_buffer_unmap with an uninitialized map variable. Then, in the gst_memory_unmap 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->mem_unmap_full or mem->allocator->mem_unmap. This vulnerability could allow an attacker to hijack the execution flow, potentially leading to code execution. This vulnerability is fixed in 1.24.10.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
gst-plugins-good0.10 (PTS)jessie, jessie (lts)0.10.31-3+nmu4+deb8u3vulnerable
gst-plugins-good1.0 (PTS)jessie, jessie (lts)1.4.4-2+deb8u6vulnerable
stretch (security)1.10.4-1+deb9u1vulnerable
stretch (lts), stretch1.10.4-1+deb9u3vulnerable
buster (security), buster, buster (lts)1.14.4-1+deb10u3vulnerable
bullseye (security), bullseye1.18.4-2+deb11u2vulnerable
bookworm (security), bookworm1.22.0-5+deb12u1vulnerable
sid, trixie1.24.10-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
gst-plugins-good0.10sourcejessie(unfixed)end-of-life
gst-plugins-good0.10source(unstable)(unfixed)
gst-plugins-good1.0sourcejessie(unfixed)end-of-life
gst-plugins-good1.0source(unstable)1.24.10-1

Notes

https://securitylab.github.com/advisories/GHSL-2024-197_GStreamer/
https://gstreamer.freedesktop.org/security/sa-2024-0017.html
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/3863
Fixed by: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/c0dceda8e969f74f2326539c1f0368c2fd7afcd7
Fixed by: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/commit/a16851ebf34a9f9be4285b2c0d75fe7844354efe (1.24.10)

Search for package or bug name: Reporting problems