Bug 1196180 (CVE-2022-0529)

Summary: VUL-0: CVE-2022-0529: unzip: Heap out-of-bound writes and reads during conversion of wide string to local string
Product: [Novell Products] SUSE Security Incidents Reporter: Gabriele Sonnu <gabriele.sonnu>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: RESOLVED FIXED QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: Andreas.Stieger, danilo.spinella, smash_bz, stoyan.manolov
Version: unspecifiedFlags: gabriele.sonnu: needinfo? (danilo.spinella)
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/322963/
Whiteboard: CVSSv3.1:SUSE:CVE-2022-0529:4.7:(AV:L/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: debian patch

Comment 1 Gabriele Sonnu 2022-02-18 16:08:22 UTC
I was able to reproduce it on:

 - SUSE:SLE-12:Update/unzip       6.00
 - SUSE:SLE-15:Update/unzip       6.00
 - openSUSE:Factory/unzip         6.00

Not sure about:

 - SUSE:SLE-11-SP1:Update/unzip   5.52
 - SUSE:SLE-11-SP2:Update/unzip   6.00

I'd say they are affected too but please double check.
No patch available for now.
Comment 3 Gabriele Sonnu 2022-09-20 14:06:20 UTC
Created attachment 861574 [details]
debian patch

Added Debian patch, from [0]. Reproducers can be found in [1].

[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010355
[1] https://github.com/ByteHackr/unzip_poc
Comment 6 Andreas Stieger 2022-09-26 15:40:08 UTC
Fix missing in unzip-rcc, pre-checkin was not run. Should be singlespec!


-# PATCH-FIX-UPSTREAM danilo.spinella@suse.com CVE-2022-0530 bsc#1196177
-Patch24:        CVE-2022-0530.patch
-# PATCH-FIX-UPSTREAM danilo.spinella@suse.com CVE-2022-0529 bsc#1196180
-Patch25:        CVE-2022-0529.patch

-%patch24 -p1
-%patch25 -p1
Comment 7 Swamp Workflow Management 2022-09-26 16:28:55 UTC
SUSE-SU-2022:3386-1: An update that fixes two vulnerabilities is now available.

Category: security (moderate)
Bug References: 1196177,1196180
CVE References: CVE-2022-0529,CVE-2022-0530
JIRA References: 
Sources used:
SUSE Linux Enterprise Server 12-SP5 (src):    unzip-6.00-33.16.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 8 Swamp Workflow Management 2022-09-26 19:26:34 UTC
SUSE-SU-2022:3399-1: An update that fixes two vulnerabilities is now available.

Category: security (moderate)
Bug References: 1196177,1196180
CVE References: CVE-2022-0529,CVE-2022-0530
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    unzip-6.00-150000.4.11.1
openSUSE Leap 15.3 (src):    unzip-6.00-150000.4.11.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    unzip-6.00-150000.4.11.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    unzip-6.00-150000.4.11.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.