CVE-2024-47606

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
NISTNIST
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
GitHub_MCNA
---
---
CISA-ADPADP
---
---
CVEADP
---
---
Base Score
CVSS 3.x
EPSS Score
Percentile: 56%
VendorProductVersion
gstreamer_projectgstreamer
𝑥
< 1.24.10
debiandebian_linux
11.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
gst-plugins-good1.0
bullseye
vulnerable
bullseye (security)
1.18.4-2+deb11u3
fixed
bookworm
1.22.0-5+deb12u2
fixed
bookworm (security)
1.22.0-5+deb12u2
fixed
sid
1.26.1-1
fixed
trixie
1.26.1-1
fixed
gstreamer1.0
bullseye
vulnerable
bullseye (security)
1.18.4-2.1+deb11u1
fixed
bookworm
1.22.0-2+deb12u1
fixed
bookworm (security)
1.22.0-2+deb12u1
fixed
trixie
1.26.1-1
fixed
sid
1.26.2-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
gst-plugins-good0.10
plucky
dne
oracular
dne
noble
dne
jammy
dne
focal
dne
xenial
needs-triage
gst-plugins-good1.0
plucky
not-affected
oracular
Fixed 1.24.8-1ubuntu1.1
released
noble
Fixed 1.24.2-1ubuntu1.1
released
jammy
Fixed 1.20.3-0ubuntu1.3
released
focal
Fixed 1.16.3-0ubuntu1.3
released
bionic
needs-triage
xenial
needs-triage
gstreamer0.10
plucky
dne
oracular
dne
noble
dne
jammy
dne
focal
dne
xenial
needs-triage
trusty
needs-triage
gstreamer1.0
plucky
not-affected
oracular
Fixed 1.24.8-1ubuntu0.1
released
noble
Fixed 1.24.2-1ubuntu0.1
released
jammy
Fixed 1.20.3-0ubuntu1.1
released
focal
Fixed 1.16.3-0ubuntu1.2
released
bionic
needs-triage
xenial
needs-triage