Bug 1202968 (CVE-2022-2519)

Summary: VUL-0: CVE-2022-2519: tiff: double free or corruption in rotateImage() function at tiffcrop.c
Product: [Novell Products] SUSE Security Incidents Reporter: Thomas Leroy <thomas.leroy>
Component: IncidentsAssignee: Security Team bot <security-team>
Status: IN_PROGRESS --- QA Contact: Security Team bot <security-team>
Severity: Major    
Priority: P3 - Medium CC: jubalh
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/341167/
Whiteboard:
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: poc

Description Thomas Leroy 2022-08-31 08:21:10 UTC
rh#2122789
There is a double free or corruption in rotateImage() at tiffcrop.c:8839 found in libtiff 4.4.0rc1

Upstream issue:
https://gitlab.com/libtiff/libtiff/-/issues/423

Upstream fix:
https://gitlab.com/libtiff/libtiff/-/merge_requests/378

References:
https://bugzilla.redhat.com/show_bug.cgi?id=2122789
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2022-2519
Comment 1 Thomas Leroy 2022-08-31 08:24:06 UTC
Created attachment 861212 [details]
poc
Comment 2 Thomas Leroy 2022-08-31 08:24:15 UTC
QA reproducer:
valgrind ./build_standard/bin/tiffcrop -Z 1:4,3:3 -R 90 -H 300 -S 2:2 CVE-2022-2519 /tmp/foo

Affected:
- SUSE:SLE-12:Update
- SUSE:SLE-15:Update
Comment 3 Thomas Leroy 2022-08-31 08:28:42 UTC
openSUSE:Factory also affected
Comment 4 Michael Vetter 2022-10-17 13:01:45 UTC
Factory: SR#1012108
SLE12: SR#282475
SLE15: SR#282476
Comment 5 OBSbugzilla Bot 2022-10-17 13:35:02 UTC
This is an autogenerated message for OBS integration:
This bug (1202968) was mentioned in
https://build.opensuse.org/request/show/1012108 Factory / tiff
Comment 7 Michael Vetter 2022-10-20 08:08:33 UTC
SRs accepted.
Comment 8 Swamp Workflow Management 2022-10-20 16:20:39 UTC
SUSE-SU-2022:3679-1: An update that fixes 9 vulnerabilities is now available.

Category: security (important)
Bug References: 1201723,1201971,1202026,1202466,1202467,1202468,1202968,1202971,1202973
CVE References: CVE-2022-0561,CVE-2022-2519,CVE-2022-2520,CVE-2022-2521,CVE-2022-2867,CVE-2022-2868,CVE-2022-2869,CVE-2022-34266,CVE-2022-34526
JIRA References: 
Sources used:
SUSE OpenStack Cloud Crowbar 9 (src):    tiff-4.0.9-44.56.1
SUSE OpenStack Cloud 9 (src):    tiff-4.0.9-44.56.1
SUSE Linux Enterprise Software Development Kit 12-SP5 (src):    tiff-4.0.9-44.56.1
SUSE Linux Enterprise Server for SAP 12-SP4 (src):    tiff-4.0.9-44.56.1
SUSE Linux Enterprise Server 12-SP5 (src):    tiff-4.0.9-44.56.1
SUSE Linux Enterprise Server 12-SP4-LTSS (src):    tiff-4.0.9-44.56.1
SUSE Linux Enterprise Server 12-SP3-BCL (src):    tiff-4.0.9-44.56.1
SUSE Linux Enterprise Server 12-SP2-BCL (src):    tiff-4.0.9-44.56.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 9 Swamp Workflow Management 2022-10-21 16:23:28 UTC
SUSE-SU-2022:3690-1: An update that fixes 9 vulnerabilities is now available.

Category: security (important)
Bug References: 1201723,1201971,1202026,1202466,1202467,1202468,1202968,1202971,1202973
CVE References: CVE-2022-0561,CVE-2022-2519,CVE-2022-2520,CVE-2022-2521,CVE-2022-2867,CVE-2022-2868,CVE-2022-2869,CVE-2022-34266,CVE-2022-34526
JIRA References: 
Sources used:
openSUSE Leap Micro 5.2 (src):    tiff-4.0.9-150000.45.16.1
openSUSE Leap 15.4 (src):    tiff-4.0.9-150000.45.16.1
openSUSE Leap 15.3 (src):    tiff-4.0.9-150000.45.16.1
SUSE Manager Server 4.1 (src):    tiff-4.0.9-150000.45.16.1
SUSE Manager Retail Branch Server 4.1 (src):    tiff-4.0.9-150000.45.16.1
SUSE Manager Proxy 4.1 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Server for SAP 15-SP2 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Server for SAP 15-SP1 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Server for SAP 15 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Server 15-SP2-LTSS (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Server 15-SP2-BCL (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Server 15-SP1-LTSS (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Server 15-SP1-BCL (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Server 15-LTSS (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP4 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Module for Packagehub Subpackages 15-SP3 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Module for Desktop Applications 15-SP3 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Module for Basesystem 15-SP4 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Module for Basesystem 15-SP3 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Micro 5.3 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise Micro 5.2 (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise High Performance Computing 15-SP2-LTSS (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise High Performance Computing 15-SP2-ESPOS (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise High Performance Computing 15-SP1-LTSS (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise High Performance Computing 15-SP1-ESPOS (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise High Performance Computing 15-LTSS (src):    tiff-4.0.9-150000.45.16.1
SUSE Linux Enterprise High Performance Computing 15-ESPOS (src):    tiff-4.0.9-150000.45.16.1
SUSE Enterprise Storage 7 (src):    tiff-4.0.9-150000.45.16.1
SUSE Enterprise Storage 6 (src):    tiff-4.0.9-150000.45.16.1
SUSE CaaS Platform 4.0 (src):    tiff-4.0.9-150000.45.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.