Bug 2170162 (CVE-2023-0799)

Summary: CVE-2023-0799 libtiff: use-after-free in extractContigSamplesShifted32bits() in tools/tiffcrop.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abuckta, bdettelb, caswilli, crizzo, dffrench, dkuc, dnakabaa, doconnor, fjansen, gzaronik, hkataria, jburrell, jkoehler, joehler, jsamir, kaycoth, kholdawa, kshier, lcouzens, lphiri, micjohns, mmuzila, mskarbek, nforro, ngough, orabin, rgodfrey, rh-spice-bugs, sthirugn, teagle, vkrizan
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in tiffcrop, a program distributed by the libtiff package. A specially crafted tiff file can lead to a use-after-free problem in the extractContigSamplesShifted32bits function in tools/tiffcrop.c, resulting in a Denial of Service.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-22 02:11:17 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: 2170163, 2170164, 2170165, 2170166, 2170598, 2170599, 2170600, 2170601, 2193353    
Bug Blocks: 2169674    

Description Guilherme de Almeida Suckevicz 2023-02-15 19:29:28 UTC
LibTIFF 4.4.0 has an out-of-bounds read in tiffcrop in tools/tiffcrop.c:3701, allowing attackers to cause a denial-of-service via a crafted tiff file. For users that compile libtiff from sources, the fix is available with commit afaabc3e.

References:
https://gitlab.com/libtiff/libtiff/-/issues/494
https://gitlab.com/gitlab-org/cves/-/blob/master/2023/CVE-2023-0799.json

Upstream patch:
https://gitlab.com/libtiff/libtiff/-/commit/afaabc3e50d4e5d80a94143f7e3c997e7e410f68

Comment 1 Guilherme de Almeida Suckevicz 2023-02-15 19:29:56 UTC
Created iv tracking bugs for this issue:

Affects: fedora-all [bug 2170166]


Created libtiff tracking bugs for this issue:

Affects: fedora-all [bug 2170164]


Created mingw-libtiff tracking bugs for this issue:

Affects: fedora-all [bug 2170163]


Created tkimg tracking bugs for this issue:

Affects: fedora-all [bug 2170165]

Comment 3 errata-xmlrpc 2023-06-21 14:38:43 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

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

Comment 4 Product Security DevOps Team 2023-06-22 02:11:13 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-2023-0799