Bug 1201702 - (CVE-2022-1922) VUL-0: CVE-2022-1922: gstreamer-0_10-plugins-good,gstreamer-plugins-good: DOS / potential heap overwrite in mkv demuxing
(CVE-2022-1922)
VUL-0: CVE-2022-1922: gstreamer-0_10-plugins-good,gstreamer-plugins-good: DOS...
Status: NEW
Classification: Novell Products
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents
unspecified
Other Other
: P3 - Medium : Minor
: ---
Assigned To: Security Team bot
Security Team bot
https://smash.suse.de/issue/337789/
CVSSv3.1:SUSE:CVE-2022-1922:6.1:(AV:L...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-07-20 11:30 UTC by Hu
Modified: 2023-02-16 12:35 UTC (History)
3 users (show)

See Also:
Found By: Security Response Team
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
QA reproducer (3.98 MB, video/x-matroska)
2022-07-20 11:32 UTC, Hu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hu 2022-07-20 11:30:13 UTC
CVE-2022-1922

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:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-1922
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-1922
https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1225
Comment 1 Hu 2022-07-20 11:32:29 UTC
Created attachment 860285 [details]
QA reproducer

Make sure you have gstreamer-plugins-good, gstreamer-plugins-base (for the gst-play-1.0) and gstreamer installed.

Then run: 
gst-play-1.0 ./zlib-decode-overflow-1.mkv

I tried this in SLE12.3
Comment 2 Hu 2022-07-20 11:33:19 UTC
Affected:
- SUSE:SLE-12-SP2:Update/gstreamer-plugins-good       1.8.3
- SUSE:SLE-15:Update/gstreamer-plugins-good           1.12.5
- SUSE:SLE-15-SP2:Update/gstreamer-plugins-good       1.16.3
- SUSE:SLE-15-SP4:Update/gstreamer-plugins-good       1.20.1

Affected i think, as qtdemux_inflate in qtdemux.c looks quite similar as in 1.8.3 and gst_matroska_decompress_data in matroska-demux.c (instead of matroska-read-common.c)
 looks similar as well:
- SUSE:SLE-11-SP2:Update/gstreamer-0_10-plugins-good  0.10.30

Affected i think, as qtdemux_inflate in qtdemux.c and gst_matroska_decompress_data in matroska-read-common.c looks quite similar as in 1.8.3:
- SUSE:SLE-12-SP2:Update/gstreamer-0_10-plugins-good  0.10.31

Not Affected (already contains fix):
- openSUSE:Factory/gstreamer-plugins-good             1.20.3
Comment 3 Hu 2022-07-20 12:19:55 UTC
The linked gitlab issue contains the fix for:

- CVE-2022-1922: this bug
- CVE-2022-1923: bnc#1201704
- CVE-2022-1924: bnc#1201706
- CVE-2022-1925: bnc#1201707
- CVE-2022-2122: bnc#1201708
Comment 5 Swamp Workflow Management 2022-08-26 13:23:05 UTC
SUSE-SU-2022:2911-1: An update that fixes 7 vulnerabilities is now available.

Category: security (important)
Bug References: 1201688,1201693,1201702,1201704,1201706,1201707,1201708
CVE References: CVE-2022-1920,CVE-2022-1921,CVE-2022-1922,CVE-2022-1923,CVE-2022-1924,CVE-2022-1925,CVE-2022-2122
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    gstreamer-plugins-good-1.8.3-16.6.2
SUSE OpenStack Cloud 9 (src):    gstreamer-plugins-good-1.8.3-16.6.2
SUSE Linux Enterprise Server for SAP 12-SP4 (src):    gstreamer-plugins-good-1.8.3-16.6.2
SUSE Linux Enterprise Server 12-SP5 (src):    gstreamer-plugins-good-1.8.3-16.6.2
SUSE Linux Enterprise Server 12-SP4-LTSS (src):    gstreamer-plugins-good-1.8.3-16.6.2
SUSE Linux Enterprise Server 12-SP3-BCL (src):    gstreamer-plugins-good-1.8.3-16.6.2
SUSE Linux Enterprise Server 12-SP2-BCL (src):    gstreamer-plugins-good-1.8.3-16.6.2

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Swamp Workflow Management 2022-08-31 16:21:00 UTC
SUSE-SU-2022:2957-1: An update that fixes 7 vulnerabilities is now available.

Category: security (important)
Bug References: 1201688,1201693,1201702,1201704,1201706,1201707,1201708
CVE References: CVE-2022-1920,CVE-2022-1921,CVE-2022-1922,CVE-2022-1923,CVE-2022-1924,CVE-2022-1925,CVE-2022-2122
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
openSUSE Leap 15.3 (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Manager Server 4.1 (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Manager Retail Branch Server 4.1 (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Manager Proxy 4.1 (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Linux Enterprise Server 15-SP2-BCL (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Linux Enterprise High Performance Computing 15-SP2-ESPOS (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1
SUSE Enterprise Storage 7 (src):    gstreamer-plugins-good-1.16.3-150200.3.9.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 10 Jia Zhaocong 2022-10-19 08:26:05 UTC
Cleaning up GNOME CVE backlog. The fix has been submitted and accepted. Assign back to security team.
Comment 11 Swamp Workflow Management 2022-11-08 14:44:34 UTC
SUSE-SU-2022:3908-1: An update that fixes 7 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1201688,1201693,1201702,1201704,1201706,1201707,1201708
CVE References: CVE-2022-1920,CVE-2022-1921,CVE-2022-1922,CVE-2022-1923,CVE-2022-1924,CVE-2022-1925,CVE-2022-2122
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    gstreamer-plugins-good-1.20.1-150400.3.3.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    gstreamer-plugins-good-1.20.1-150400.3.3.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 12 Swamp Workflow Management 2022-11-08 14:46:44 UTC
SUSE-SU-2022:3906-1: An update that fixes 7 vulnerabilities is now available.

Category: security (moderate)
Bug References: 1201688,1201693,1201702,1201704,1201706,1201707,1201708
CVE References: CVE-2022-1920,CVE-2022-1921,CVE-2022-1922,CVE-2022-1923,CVE-2022-1924,CVE-2022-1925,CVE-2022-2122
JIRA References: 
Sources used:
SUSE Linux Enterprise Workstation Extension 12-SP5 (src):    gstreamer-0_10-plugins-good-0.10.31-17.7.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.