Bug 2130955 (CVE-2022-1922) - CVE-2022-1922 gstreamer-plugins-good: Potential heap overwrite in mkv demuxing using zlib decompression
Summary: CVE-2022-1922 gstreamer-plugins-good: Potential heap overwrite in mkv demuxin...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2022-1922
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2130956 2130957 2131042 2131043 2131044 2131045 2131046
Blocks: 2111231
TreeView+ depends on / blocked
 
Reported: 2022-09-29 14:29 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-07-11 10:51 UTC (History)
9 users (show)

Fixed In Version: gstreamer-plugins-good 1.20.3
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in GStreamer. An integer overflow can lead to a heap-based buffer overflow in the mkv demuxer when processing a specially crafted Matroska/WebM file using zlib decompression. This vulnerability can result in application crash, memory corruption, and code execution.
Clone Of:
Environment:
Last Closed: 2023-05-09 16:50:30 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2023:2260 0 None None None 2023-05-09 07:23:28 UTC

Description Guilherme de Almeida Suckevicz 2022-09-29 14:29:39 UTC
DOS / potential heap overwrite in mkv demuxing using zlib decompression. Integer overflow in matroskademux element in gst_matroska_decompress_data function which causes a segfault, or could cause a heap overwrite, depending on libc and OS. Depending on the libc used, and the underlying OS capabilities, it could be just a segfault or a heap overwrite. If the libc uses mmap for large chunks, and the OS supports mmap, then it is just a segfault (because the realloc before the integer overflow will use mremap to reduce the size of the chunk, and it will start to write to unmapped memory). However, if using a libc implementation that does not use mmap, or if the OS does not support mmap while using libc, then this could result in a heap overwrite.

References:
https://gstreamer.freedesktop.org/security/sa-2022-0002.html
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1225

Comment 1 Guilherme de Almeida Suckevicz 2022-09-29 14:30:01 UTC
Created gstreamer1-plugins-good tracking bugs for this issue:

Affects: fedora-all [bug 2130957]


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

Affects: fedora-all [bug 2130956]

Comment 3 errata-xmlrpc 2023-05-09 07:23:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2023:2260 https://access.redhat.com/errata/RHSA-2023:2260

Comment 4 Product Security DevOps Team 2023-05-09 16:50:28 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-2022-1922


Note You need to log in before you can comment on or make changes to this bug.