Bug 2170172 (CVE-2023-0801)

Summary: CVE-2023-0801 libtiff: out-of-bounds write in _TIFFmemcpy() in libtiff/tif_unix.c when called by functions in tools/tiffcrop.c
Product: [Other] Security Response Reporter: Guilherme de Almeida Suckevicz <gsuckevi>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: bdettelb, caswilli, dffrench, dkuc, fjansen, gzaronik, hkataria, jburrell, jkoehler, kaycoth, kshier, micjohns, nforro, ngough, rgodfrey, rh-spice-bugs, sthirugn
Target Milestone: ---Keywords: Reopened, 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 an out-of-bounds write in the _TIFFmemcpy function in libtiff/tif_unix.c when called by functions in tools/tiffcrop.c, resulting in a Denial of Service and limited data modification.
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-22 02:13:20 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: 2170173, 2170174, 2170175, 2170176, 2170607, 2170608, 2170609, 2170610, 2193355    
Bug Blocks: 2169674    

Description Guilherme de Almeida Suckevicz 2023-02-15 19:38:17 UTC
LibTIFF 4.4.0 has an out-of-bounds write in tiffcrop in libtiff/tif_unix.c:368, invoked by tools/tiffcrop.c:2903 and tools/tiffcrop.c:6778, 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 33aee127.

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

Upstream patch:
https://gitlab.com/libtiff/libtiff/-/commit/33aee1275d9d1384791d2206776eb8152d397f00

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

Affects: fedora-all [bug 2170175]


Created libtiff tracking bugs for this issue:

Affects: fedora-all [bug 2170173]


Created mingw-libtiff tracking bugs for this issue:

Affects: fedora-all [bug 2170174]


Created tkimg tracking bugs for this issue:

Affects: fedora-all [bug 2170176]

Comment 3 errata-xmlrpc 2023-06-21 14:38:44 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:13:17 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-0801

Comment 6 errata-xmlrpc 2023-09-26 09:18:11 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

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