CVE-2021-3185 Memory corruption in gstreamer

Critical 9.8 Published Updated

An attacker can cause stack smashing and memory corruption in GStreamer's H.264 parser, potentially leading to code execution or denial of service.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-3185?

CVE-2021-3185 is a critical memory corruption vulnerability in gstreamer, published on 25 Jan 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A flaw was found in the gstreamer h264 component of gst-plugins-bad before v1.18.1 where when parsing a h264 header, an attacker could cause the stack to be smashed, memory corruption and possibly code execution.

Weakness: CWE-787, CWE-120

Which versions are affected by CVE-2021-3185?

It affects 1 product.

Linux distribution packages (40)
gstreamer-plugins-bad SUSE:Enterprise Storage 6All versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:HPE Helion OpenStack 8All versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise High Performance Computing 15 SP1-ESPOSAll versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSSAll versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:Linux Enterprise High Performance Computing 15-ESPOSAll versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:Linux Enterprise High Performance Computing 15-LTSSAll versions1.12.5-3.6.1
gstreamer SUSE:Linux Enterprise Micro 5.0All versions1.16.3-3.3.1
gstreamer-plugins-base SUSE:Linux Enterprise Micro 5.0All versions1.16.3-4.3.1
gstreamer SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions1.16.3-3.3.1
gstreamer-plugins-bad SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions1.16.3-4.4.1
gstreamer-plugins-base SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions1.16.3-4.3.1
gstreamer-plugins-good SUSE:Linux Enterprise Module for Basesystem 15 SP2All versions1.16.3-3.3.1
gstreamer SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions1.16.3-3.3.1
gstreamer-plugins-bad SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions1.16.3-9.3.1
gstreamer-plugins-base SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions1.16.3-4.3.1
gstreamer-plugins-good SUSE:Linux Enterprise Module for Basesystem 15 SP3All versions1.16.3-3.3.1
gstreamer SUSE:Linux Enterprise Module for Desktop Applications 15 SP2All versions1.16.3-3.3.1
gstreamer-plugins-bad SUSE:Linux Enterprise Module for Desktop Applications 15 SP2All versions1.16.3-4.4.1
gstreamer-plugins-base SUSE:Linux Enterprise Module for Desktop Applications 15 SP2All versions1.16.3-4.3.1
gstreamer-plugins-bad SUSE:Linux Enterprise Module for Desktop Applications 15 SP3All versions1.16.3-9.3.1
gstreamer SUSE:Linux Enterprise Module for Package Hub 15 SP2All versions1.16.3-3.3.1
gstreamer-plugins-base SUSE:Linux Enterprise Module for Package Hub 15 SP2All versions1.16.3-4.3.1
gstreamer SUSE:Linux Enterprise Module for Package Hub 15 SP3All versions1.16.3-3.3.1
gstreamer-plugins-base SUSE:Linux Enterprise Module for Package Hub 15 SP3All versions1.16.3-4.3.1
gstreamer-plugins-bad SUSE:Linux Enterprise Server 12 SP2-BCLAll versions1.2.4-3.7.1
gstreamer-plugins-bad SUSE:Linux Enterprise Server 12 SP2-BCLAll versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise Server 12 SP3-BCLAll versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise Server 12 SP3-LTSSAll versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise Server 12 SP4-LTSSAll versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise Server 12 SP5All versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise Server 15 SP1-BCLAll versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:Linux Enterprise Server 15 SP1-LTSSAll versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:Linux Enterprise Server 15-LTSSAll versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise Server for SAP Applications 12 SP4All versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions1.8.3-18.3.5
gstreamer-plugins-bad SUSE:Linux Enterprise Server for SAP Applications 15All versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:Linux Enterprise Server for SAP Applications 15 SP1All versions1.12.5-3.6.1
gstreamer-plugins-bad SUSE:Linux Enterprise Software Development Kit 12 SP5All versions1.8.3-18.3.5
gstreamer-plugins-ugly SUSE:Linux Enterprise Workstation Extension 15 SP2All versions1.16.3-3.3.1

Products include Freedesktop Gst-Plugins-Bad.

How do I fix CVE-2021-3185?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-3185 being exploited?

There is no known exploitation of CVE-2021-3185 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2021-3185, DLA-2528-1, DSA-4833-1, GHSA-fr84-36xq-g72g, MGASA-2021-0079, OESA-2021-1035 and 13 more.

Is CVE-2021-3185 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free