Bug 2228742 (CVE-2023-29408)

Summary: CVE-2023-29408 golang.org/x/image/tiff: TIFF decoder does not place a limit on the size of compressed tile data
Product: [Other] Security Response Reporter: Avinash Hanwate <ahanwate>
Component: vulnerabilityAssignee: Nobody <nobody>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: gparvin, njean, owatkins, pahickey, stcannon, teagle
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: golang.org/x/image/tiff 0.10.0 Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in the Golang tiff package, where it is vulnerable to a denial of service caused by not limiting the size of compressed tile data. By persuading a victim to open a specially crafted image file, a remote attacker can cause excessive memory and CPU consumption in decoding, resulting in a denial of service condition.
Story Points: ---
Clone Of: Environment:
Last Closed: 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: 2229617, 2229618    
Bug Blocks: 2228694    

Description Avinash Hanwate 2023-08-03 07:06:14 UTC
The TIFF decoder does not place a limit on the size of compressed tile data. A maliciously-crafted image can exploit this to cause a small image (both in terms of pixel width/height, and encoded size) to make the decoder decode large amounts of compressed data, consuming excessive memory and CPU.

https://pkg.go.dev/vuln/GO-2023-1989
https://go.dev/cl/514897
https://go.dev/issue/61582

Comment 2 Avinash Hanwate 2023-08-07 06:03:22 UTC
Created golang-x-image tracking bugs for this issue:

Affects: fedora-all [bug 2229617]


Created hugo tracking bugs for this issue:

Affects: fedora-all [bug 2229618]