CVE-2021-3185
Description
A stack buffer overflow in GStreamer's H.264 parser (gst-plugins-bad before 1.18.1) allows remote code execution via a crafted H.264 header.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A stack buffer overflow in GStreamer's H.264 parser (gst-plugins-bad before 1.18.1) allows remote code execution via a crafted H.264 header.
Vulnerability
A stack buffer overflow vulnerability exists in the gst_h264_slice_parse_dec_ref_pic_marking function within the H.264 parsing component of gst-plugins-bad versions before 1.18.1. When parsing a specially crafted H.264 slice header, insufficient bounds checking can cause memory corruption on the stack, potentially allowing an attacker to overwrite adjacent stack data [1]. The bug resides in the GStreamer multimedia framework's handling of H.264 decoding reference picture marking syntax elements [1].
Exploitation
An attacker can exploit this vulnerability by providing a malicious H.264 stream (e.g., a crafted video file) to an application that uses GStreamer's affected H.264 decoder. No special authentication or elevated privileges are required; the attack vector is typically a malformed media file that triggers the parsing error. The vulnerable code path is reached when the gst_h264_slice_parse_dec_ref_pic_marking function processes the reference picture marking information from the stream's slice header [1].
Impact
Successful exploitation results in stack memory corruption, which can be leveraged to achieve arbitrary code execution in the context of the GStreamer process. This can lead to full compromise of the affected application, including data exfiltration or further system compromise. The vulnerability is rated as medium severity with a CVSS score of 5.5 (AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H) [1].
Mitigation
The vulnerability is fixed in GStreamer gst-plugins-bad version 1.18.1 and later [1]. For affected distributions (e.g., Red Hat Enterprise Linux, Fedora, Gentoo), updates should be applied as available. Gentoo has released a GLSA recommending upgrade to >=media-libs/gst-plugins-bad-1.20.2 [2]. No workaround is known for unpatched versions [2].
AI Insight generated on May 27, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
59- gstreamer/gst-plugins-baddescription
- Range: <1.18.1
- osv-coords57 versionspkg:rpm/opensuse/gstreamer&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/gstreamer&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/gstreamer-plugins-bad&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/gstreamer-plugins-bad&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/gstreamer-plugins-base&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/gstreamer-plugins-base&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/gstreamer-plugins-good&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/gstreamer-plugins-good&distro=openSUSE%20Leap%2015.3pkg:rpm/opensuse/gstreamer-plugins-ugly&distro=openSUSE%20Leap%2015.2pkg:rpm/opensuse/gstreamer-plugins-ugly&distro=openSUSE%20Leap%2015.3pkg:rpm/suse/gstreamer&distro=SUSE%20Linux%20Enterprise%20Micro%205.0pkg:rpm/suse/gstreamer&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/gstreamer&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/gstreamer&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP2pkg:rpm/suse/gstreamer&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP2pkg:rpm/suse/gstreamer&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3pkg:rpm/suse/gstreamer-plugins-bad&distro=HPE%20Helion%20OpenStack%208pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-ESPOSpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-ESPOSpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015-LTSSpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP2pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP3pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP2-BCLpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-BCLpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP3-LTSSpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-BCLpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%2015-LTSSpkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP3pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Manager%20Proxy%204.0pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Manager%20Retail%20Branch%20Server%204.0pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20Manager%20Server%204.0pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20OpenStack%20Cloud%208pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20OpenStack%20Cloud%20Crowbar%208pkg:rpm/suse/gstreamer-plugins-bad&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209pkg:rpm/suse/gstreamer-plugins-base&distro=SUSE%20Linux%20Enterprise%20Micro%205.0pkg:rpm/suse/gstreamer-plugins-base&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/gstreamer-plugins-base&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/gstreamer-plugins-base&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Desktop%20Applications%2015%20SP2pkg:rpm/suse/gstreamer-plugins-base&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP2pkg:rpm/suse/gstreamer-plugins-base&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Package%20Hub%2015%20SP3pkg:rpm/suse/gstreamer-plugins-good&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP2pkg:rpm/suse/gstreamer-plugins-good&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP3pkg:rpm/suse/gstreamer-plugins-ugly&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP2pkg:rpm/suse/gstreamer-plugins-ugly&distro=SUSE%20Linux%20Enterprise%20Workstation%20Extension%2015%20SP3
< 1.16.3-lp152.2.3.1+ 56 more
- (no CPE)range: < 1.16.3-lp152.2.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-lp152.3.3.1
- (no CPE)range: < 1.16.3-lp153.3.3.1
- (no CPE)range: < 1.16.3-lp152.3.3.1
- (no CPE)range: < 1.16.3-4.3.1
- (no CPE)range: < 1.16.3-lp152.2.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-lp152.2.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.16.3-4.4.1
- (no CPE)range: < 1.16.3-9.3.1
- (no CPE)range: < 1.16.3-4.4.1
- (no CPE)range: < 1.16.3-9.3.1
- (no CPE)range: < 1.2.4-3.7.1
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.12.5-3.6.1
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.8.3-18.3.5
- (no CPE)range: < 1.16.3-4.3.1
- (no CPE)range: < 1.16.3-4.3.1
- (no CPE)range: < 1.16.3-4.3.1
- (no CPE)range: < 1.16.3-4.3.1
- (no CPE)range: < 1.16.3-4.3.1
- (no CPE)range: < 1.16.3-4.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
- (no CPE)range: < 1.16.3-3.3.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
2- security.gentoo.org/glsa/202208-31mitrevendor-advisoryx_refsource_GENTOO
- bugzilla.redhat.com/show_bug.cgimitrex_refsource_MISC
News mentions
0No linked articles in our index yet.