CVE-2024-47606

EUVD-2024-42823
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.
Wrap or Wraparound
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.8 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 41%
Affected Products (NVD)
VendorProductVersion
gstreamer_projectgstreamer
𝑥
< 1.24.10
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
gst-plugins-good1.0
bookworm
1.22.0-5+deb12u3
fixed
bookworm (security)
1.22.0-5+deb12u2
fixed
bullseye
vulnerable
bullseye (security)
1.18.4-2+deb11u4
fixed
forky
1.26.9-1
fixed
sid
1.26.10-1
fixed
trixie
1.26.2-1
fixed
gstreamer1.0
bookworm
1.22.0-2+deb12u1
fixed
bookworm (security)
1.22.0-2+deb12u1
fixed
bullseye
vulnerable
bullseye (security)
1.18.4-2.1+deb11u1
fixed
forky
1.26.9-1
fixed
sid
1.26.10-1
fixed
trixie
1.26.2-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
gst-plugins-good0.10
focal
dne
jammy
dne
noble
dne
oracular
dne
plucky
dne
questing
dne
xenial
needs-triage
gst-plugins-good1.0
bionic
needs-triage
focal
Fixed 1.16.3-0ubuntu1.3
released
jammy
Fixed 1.20.3-0ubuntu1.3
released
noble
Fixed 1.24.2-1ubuntu1.1
released
oracular
Fixed 1.24.8-1ubuntu1.1
released
plucky
not-affected
questing
not-affected
xenial
needs-triage
gstreamer0.10
focal
dne
jammy
dne
noble
dne
oracular
dne
plucky
dne
questing
dne
trusty
needs-triage
xenial
needs-triage
gstreamer1.0
bionic
needs-triage
focal
Fixed 1.16.3-0ubuntu1.2
released
jammy
Fixed 1.20.3-0ubuntu1.1
released
noble
Fixed 1.24.2-1ubuntu0.1
released
oracular
Fixed 1.24.8-1ubuntu0.1
released
plucky
not-affected
questing
not-affected
xenial
needs-triage