Bug 2118869 (CVE-2022-2869) - CVE-2022-2869 libtiff: tiffcrop.c has uint32_t underflow which leads to out of bounds read and write in extractContigSamples8bits()
Summary: CVE-2022-2869 libtiff: tiffcrop.c has uint32_t underflow which leads to out o...
Keywords:
Status: NEW
Alias: CVE-2022-2869
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: 2118871 2118872 2118873 2118874 2118875 2118876 2118878 2140590 2118877 2118879
Blocks: 2118841
TreeView+ depends on / blocked
 
Reported: 2022-08-16 23:59 UTC by Todd Cullum
Modified: 2022-11-29 04:30 UTC (History)
8 users (show)

Fixed In Version: libtiff 4.4.0rc1
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in libtiff's tiffcrop tool that has a uint32_t underflow, which leads to an out-of-bounds read and write in the extractContigSamples8bits routine. This flaw allows an attacker who supplies a crafted file to tiffcrop to trick a user into opening the crafted file with tiffcrop, causing a crash or potential further exploitations.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)

Description Todd Cullum 2022-08-16 23:59:57 UTC
In libtiff's tiffcrop (tools/tiffcrop.c) utility, there is a uint32_t underflow that leads to an out-of-bounds read and write. A crafted file could trigger this flaw when certain command line arguments are also supplied.

References:
1. https://gitlab.com/libtiff/libtiff/-/issues/352
2. https://gitlab.com/libtiff/libtiff/-/merge_requests/294/diffs?commit_id=bcf28bb7f630f24fa47701a9907013f3548092cd

Comment 1 Todd Cullum 2022-08-17 00:04:02 UTC
Created iv tracking bugs for this issue:

Affects: fedora-35 [bug 2118872]
Affects: fedora-36 [bug 2118874]


Created libtiff tracking bugs for this issue:

Affects: fedora-35 [bug 2118871]
Affects: fedora-36 [bug 2118875]


Created mingw-libtiff tracking bugs for this issue:

Affects: fedora-35 [bug 2118873]
Affects: fedora-36 [bug 2118876]


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