CVE-2022-2867: Integer Underflow

Published Aug 16, 2022
·
Updated

In libtiff's tiffcrop utility, a uint32t underflow results in an out-of-bounds read and write in extractContigSamples8bits and extractContigSamplesShifted32bits of tiffcrop.c.

References: https://gitlab.com/libtiff/libtiff/-/issues/350 https://gitlab.com/libtiff/libtiff/-/issues/351 https://gitlab.com/libtiff/libtiff/-/mergerequests/294/diffs?commitid=7d7bfa4416366ec64068ac389414241ed4730a54

Other sources

LibTIFF is vulnerable to a denial of service, caused by a uint32t underflow that leads to an out-of-bounds read and write in the extractContigSamples8bits and extractContigSamplesShifted32bits routines when parsing files in tiffcrop.c. By persuading a victim to open a specially-crafted file, a remote attacker could exploit this vulnerability to cause a denial of service.

— IBM

libtiff's tiffcrop utility has a uint32t underflow that can lead to out of bounds read and write. An attacker who supplies a crafted file to tiffcrop (likely via tricking a user to run tiffcrop on it with certain parameters) could cause a crash or in some cases, further exploitation.

Affected Software

24 affected componentsFixes available
redhat/libtiff<4.4.0
4.4.0
IBM Cognos Analytics<=12.0.0-12.0.3
IBM Cognos Analytics<=11.2.0-11.2.4 FP4
LibTIFF libtiff<4.4.0
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Debian Debian Linux=10.0
Debian Debian Linux=11.0
debian/tiff<4.4.0~rc1-1
4.4.0~rc1-1
debian/tiff<4.4.0~rc1-1
4.4.0~rc1-1
debian/tiff<4.4.0~rc1-1
4.4.0~rc1-1
debian/tiff
4.5.0-6+deb12u44.7.0-3+deb13u34.7.2-1
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0
alpine/tiff<4.4.0-r0
4.4.0-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/tiff to a version that resolves this vulnerability.

    Fixed in 4.1.0+git191117-2~deb10u8Fixed in 4.2.0-1+deb11u4Fixed in 4.2.0-1+deb11u5Fixed in 4.5.0-6+deb12u1Fixed in 4.5.1+git230720-3
  2. Upgrade

    Upgrade redhat/libtiff to a version that resolves this vulnerability.

    Fixed in 4.4.0

Event History

Aug 17, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·10:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·10:15 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2022-2867?

CVE-2022-2867 is a vulnerability in libtiff's tiffcrop utility that allows for a uint32_t underflow, leading to out-of-bounds read and write.

2

How can the CVE-2022-2867 vulnerability be exploited?

An attacker can exploit CVE-2022-2867 by supplying a crafted file to tiffcrop, potentially tricking a user into running tiffcrop on it with certain parameters.

3

What is the severity of CVE-2022-2867?

CVE-2022-2867 has a severity level of medium (4) based on the CVSS scoring.

4

Which software versions are affected by CVE-2022-2867?

Versions up to and exclusive of 4.4.0 for libtiff on Red Hat, and versions up to and inclusive of 4.1.0+git191117-2~deb10u4 for tiff on Debian are affected.

5

How can I fix CVE-2022-2867?

To fix CVE-2022-2867, update to version 4.4.0 for libtiff on Red Hat, or to a version higher than 4.1.0+git191117-2~deb10u4 for tiff on Debian.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203