Bug 2170151 (CVE-2023-0797) - CVE-2023-0797 libtiff: out-of-bounds read in _TIFFmemcpy() in libtiff/tif_unix.c when called by functions in tools/tiffcrop.c
Summary: CVE-2023-0797 libtiff: out-of-bounds read in _TIFFmemcpy() in libtiff/tif_uni...
Keywords:
Status: NEW
Alias: CVE-2023-0797
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2170153 2170154 2170592 2193351 2170152 2170155 2170590 2170591 2170593
Blocks: 2169674
TreeView+ depends on / blocked
 
Reported: 2023-02-15 19:21 UTC by Guilherme de Almeida Suckevicz
Modified: 2023-05-05 11:00 UTC (History)
18 users (show)

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 read 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 information disclosure.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Guilherme de Almeida Suckevicz 2023-02-15 19:21:23 UTC
LibTIFF 4.4.0 has an out-of-bounds read in tiffcrop in libtiff/tif_unix.c:368, invoked by tools/tiffcrop.c:2903 and tools/tiffcrop.c:6921, 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/495
https://gitlab.com/gitlab-org/cves/-/blob/master/2023/CVE-2023-0797.json

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

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

Affects: fedora-all [bug 2170154]


Created libtiff tracking bugs for this issue:

Affects: fedora-all [bug 2170153]


Created mingw-libtiff tracking bugs for this issue:

Affects: fedora-all [bug 2170152]


Created tkimg tracking bugs for this issue:

Affects: fedora-all [bug 2170155]


Note You need to log in before you can comment on or make changes to this bug.