Bug 2042603 (CVE-2022-22844)

Summary: CVE-2022-22844 libtiff: out-of-bounds read in _TIFFmemcpy() in tif_unix.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: caswilli, dhalasz, erik-fedora, fjansen, jburrell, jwong, kaycoth, micjohns, mike, mmuzila, nforro, phracek, rh-spice-bugs, sthirugn, vkrizan, vmugicag
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 buffer overflow vulnerability was found in libtiff. This flaw allows an attacker with network access to pass specially crafted files, causing an application to halt or crash. The root cause of this issue was from the memcpy function in tif_unix.c.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-12-06 19:33:11 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: 2042604, 2042605, 2042767, 2042768, 2042769    
Bug Blocks: 2042606    

Description Guilherme de Almeida Suckevicz 2022-01-19 19:36:18 UTC
LibTIFF 4.3.0 has an out-of-bounds read in _TIFFmemcpy in tif_unix.c in certain situations involving a custom tag and 0x0200 as the second word of the DE field.

Reference:
https://gitlab.com/libtiff/libtiff/-/issues/355

Upstream patch:
https://gitlab.com/libtiff/libtiff/-/merge_requests/287

Comment 1 Guilherme de Almeida Suckevicz 2022-01-19 19:36:39 UTC
Created libtiff tracking bugs for this issue:

Affects: fedora-all [bug 2042604]


Created mingw-libtiff tracking bugs for this issue:

Affects: fedora-all [bug 2042605]

Comment 6 errata-xmlrpc 2022-11-08 09:44:59 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2022:7585 https://access.redhat.com/errata/RHSA-2022:7585

Comment 7 errata-xmlrpc 2022-11-15 10:35:13 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2022:8194 https://access.redhat.com/errata/RHSA-2022:8194

Comment 8 Product Security DevOps Team 2022-12-06 19:33:09 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-2022-22844