Null Pointer Dereference in libtiff: CVE-2022-0908

tiff Updated 02 Oct 2025

Summary

11/03/2022
N/A
Yes i
Medium
5.5

CVE-2022-0908: Null source pointer passed as an argument to memcpy() function within TIFFFetchNormalTag () in tif_dirread.c in libtiff versions up to 4.3.0 could lead to Denial of Service via crafted TIFF file. Affects tiff across 2 version ranges.

< 4.3.0-r0 < a95b799f65064e4ba2e2dfc206808f86faf93e85

Fixed in 4.3.0-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libtiff is an open-source library used for reading and writing TIFF image files. It provides various functions and utilities for handling TIFF files. However, versions up to 4.3.0 of libtiff are vulnerable to a null pointer dereference issue in the TIFFFetchNormalTag() function within the tif_dirread.c file. This vulnerability can be exploited by an attacker through a crafted TIFF file, leading to a Denial of Service (DoS) attack.

Vulnerability Detail

The vulnerability (CVE-2022-0908) arises from a null source pointer being passed as an argument to the memcpy() function within the TIFFFetchNormalTag() function. This can result in a crash or termination of the application using libtiff when processing a malicious TIFF file. An attacker can exploit this vulnerability by providing a specially crafted TIFF file, causing the application to crash or become unresponsive. The impact of this vulnerability is limited to a DoS attack, as it does not allow for arbitrary code execution or privilege escalation.

How To Fix

Minimum fixed version

4.3.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade tiff

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no known workaround for this vulnerability. It is essential to update libtiff to the fixed version to mitigate the risk of exploitation.

Conclusion

The null pointer dereference vulnerability in libtiff (CVE-2022-0908) can be mitigated by updating to version 4.3.0 or later. It is recommended to promptly update libtiff to ensure the security and stability of applications using this library. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for tiff →

Share this vulnerability

FAQ

libtiff is an open-source library used for reading and writing TIFF image files. It provides various functions and utilities for handling TIFF files.

The vulnerability (CVE-2022-0908) can lead to a Denial of Service (DoS) attack by causing the application using libtiff to crash or become unresponsive. However, it does not allow for arbitrary code execution or privilege escalation.

An attacker can exploit this vulnerability by providing a specially crafted TIFF file, which triggers the null pointer dereference issue in the TIFFFetchNormalTag() function. This can lead to a crash or termination of the application.

No, there is no known workaround for this vulnerability. It is crucial to update libtiff to the fixed version (4.3.0 or later) to mitigate the risk of exploitation.

Users can update libtiff to the fixed version (4.3.0 or later) by obtaining the updated package from the official repository or package manager for their operating system.

Related vulnerabilities

Recent vulnerabilities recorded for tiff.

How To Fix

Minimum fixed version

4.3.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade tiff

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback