Bug 1945339 (CVE-2021-3497)

Summary: CVE-2021-3497 gstreamer-plugins-good: Use-after-free in matroska demuxing
Product: [Other] Security Response Reporter: Pedro Sampaio <psampaio>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdpepple, marcandre.lureau, mike, negativo17, rh-spice-bugs, uraeus, victortoso, wtaymans
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: gstreamer-plugins-good 1.18.4 Doc Type: If docs needed, set a value
Doc Text:
GStreamer before 1.18.4 might access already-freed memory in error code paths when demuxing certain malformed Matroska files.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-03 18:17:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1945340, 1948940, 1948941, 1948942, 1948947, 1948948, 1949026    
Bug Blocks: 1945353, 1949263    

Description Pedro Sampaio 2021-03-31 17:36:32 UTC
GStreamer before 1.18.4 might access already-freed memory in error code paths when demuxing certain malformed Matroska files.

References:

https://gstreamer.freedesktop.org/security/sa-2021-0002.html
https://gstreamer.freedesktop.org/releases/1.18/#1.18.4

Comment 1 Pedro Sampaio 2021-03-31 17:37:15 UTC
Created mingw-gstreamer-plugins-good tracking bugs for this issue:

Affects: fedora-all [bug 1945340]

Comment 3 Huzaifa S. Sidhpurwala 2021-04-13 06:26:19 UTC
Analysis:

This is a use-after-free in gstreamer Matroska plugin. An attacker could a malicious .mkv file and cause application crash or even arbitrary code execution with permissions of the user running the said application. However code execution seems difficult, because the most modern compilers and glibc have protections against use-after-free

Comment 5 Huzaifa S. Sidhpurwala 2021-04-13 06:49:09 UTC
Created gstreamer1-plugins-good tracking bugs for this issue:

Affects: fedora-all [bug 1948948]


Created mingw-gstreamer1-plugins-good tracking bugs for this issue:

Affects: fedora-all [bug 1948947]

Comment 8 Guilherme de Almeida Suckevicz 2021-04-19 14:16:12 UTC
External References:

https://gstreamer.freedesktop.org/security/sa-2021-0002.html

Comment 10 errata-xmlrpc 2022-11-08 09:50:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7618 https://access.redhat.com/errata/RHSA-2022:7618

Comment 11 Product Security DevOps Team 2022-12-03 18:17:33 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-3497