# CVE-2024-7006: Libtiff: null pointer dereference in tif_dirinfo.c

> An attacker can cause a denial of service via segmentation fault in Libtiff by triggering a null pointer dereference during memory allocation failures.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Aug 2024
- **Updated:** 23 Jan 2026
- **Also known as:** ALSA-2024:8833, ALSA-2024:8914, AZL-47751, AZL-47759, AZL-47760, AZL-47768, BELL-CVE-2024-7006, CLSA-2024-1729546973, DEBIAN-CVE-2024-7006, GHSA-r7x8-hv2q-v9r7, JLSEC-2025-316, MGASA-2024-0287, OESA-2024-1987, OESA-2024-2044, OESA-2024-2045, OESA-2024-2046, OESA-2024-2047, RHSA-2024:6360, RHSA-2024:8833, RHSA-2024:8914, RLSA-2024:8833, RLSA-2024:8914, SUSE-SU-2024:2979-1, SUSE-SU-2024:3115-1, SUSE-SU-2024:3117-1, SUSE-SU-2025:20068-1, UBUNTU-CVE-2024-7006, USN-6997-1, USN-6997-2, openSUSE-SU-2024:14281-1

## What is CVE-2024-7006?

CVE-2024-7006 is a high-severity vulnerability in Libtiff Libtiff, published on 8 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

A null pointer dereference flaw was found in Libtiff via `tif_dirinfo.c`. This issue may allow an attacker to trigger memory allocation failures through certain means, such as restricting the heap space size or injecting faults, causing a segmentation fault. This can cause an application crash, eventually leading to a denial of service.

Weakness: CWE-476 (NULL Pointer Dereference)

## Which versions are affected by CVE-2024-7006?

It affects 5 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `libtiff` | AlmaLinux:8 | All versions | 4.0.9-33.el8_10 |
| `libtiff-devel` | AlmaLinux:8 | All versions | 4.0.9-33.el8_10 |
| `libtiff-tools` | AlmaLinux:8 | All versions | 4.0.9-33.el8_10 |
| `libtiff` | AlmaLinux:9 | All versions | 4.4.0-12.el9_4.1 |
| `libtiff-devel` | AlmaLinux:9 | All versions | 4.4.0-12.el9_4.1 |
| `libtiff-tools` | AlmaLinux:9 | All versions | 4.4.0-12.el9_4.1 |
| `libtiff` | Red Hat:enterprise_linux:8::appstream | All versions | 0:4.0.9-33.el8_10 |
| `libtiff-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:4.0.9-33.el8_10 |
| `libtiff-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:4.0.9-33.el8_10 |
| `libtiff-devel` | Red Hat:enterprise_linux:8::appstream | All versions | 0:4.0.9-33.el8_10 |
| `libtiff-tools-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:4.0.9-33.el8_10 |
| `libtiff-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:4.0.9-33.el8_10 |
| `libtiff-debugsource` | Red Hat:enterprise_linux:8::crb | All versions | 0:4.0.9-33.el8_10 |
| `libtiff-tools` | Red Hat:enterprise_linux:8::crb | All versions | 0:4.0.9-33.el8_10 |
| `libtiff-tools-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:4.0.9-33.el8_10 |
| `libtiff` | Red Hat:enterprise_linux:9::appstream | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff-tools-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff-debuginfo` | Red Hat:enterprise_linux:9::crb | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff-debugsource` | Red Hat:enterprise_linux:9::crb | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff-tools` | Red Hat:enterprise_linux:9::crb | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff-tools-debuginfo` | Red Hat:enterprise_linux:9::crb | All versions | 0:4.4.0-12.el9_4.1 |
| `libtiff` | Red Hat:rhel_eus:9.2::appstream | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff-debuginfo` | Red Hat:rhel_eus:9.2::appstream | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff-debugsource` | Red Hat:rhel_eus:9.2::appstream | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff-devel` | Red Hat:rhel_eus:9.2::appstream | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff-tools-debuginfo` | Red Hat:rhel_eus:9.2::appstream | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff-debuginfo` | Red Hat:rhel_eus:9.2::crb | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff-debugsource` | Red Hat:rhel_eus:9.2::crb | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff-tools` | Red Hat:rhel_eus:9.2::crb | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff-tools-debuginfo` | Red Hat:rhel_eus:9.2::crb | All versions | 0:4.4.0-8.el9_2.1 |
| `libtiff` | Rocky Linux:8 | All versions | 0:4.0.9-33.el8_10 |
| `libtiff` | Rocky Linux:9 | All versions | 0:4.4.0-12.el9_4.1 |
| `tiff` | SUSE:Linux Enterprise Micro 5.2 | All versions | 4.0.9-150000.45.47.1 |
| `tiff` | SUSE:Linux Enterprise Micro 5.3 | All versions | 4.0.9-150000.45.47.1 |
| `tiff` | SUSE:Linux Enterprise Micro 5.4 | All versions | 4.0.9-150000.45.47.1 |
| `tiff` | SUSE:Linux Enterprise Micro 5.5 | All versions | 4.0.9-150000.45.47.1 |
| `tiff` | SUSE:Linux Enterprise Module for Basesystem 15 SP5 | All versions | 4.0.9-150000.45.47.1 |

Products: Libtiff Libtiff, Redhat Enterprise Linux, Redhat Enterprise Linux for Arm 64, Redhat Enterprise Linux for Power Little Endian Eus, Redhat Enterprise Linux Server Aus.

## How do I fix CVE-2024-7006?

Apply the vendor's patch.

## Is CVE-2024-7006 being exploited?

There is no known exploitation of CVE-2024-7006 in the wild and no public exploit code.

## Other vulnerabilities in Libtiff Libtiff

- [CVE-2004-1308](https://insights.sbomify.com/CVE-2004-1308/): Integer overflow in n/a (critical 10.0)
- [CVE-2004-0929](https://insights.sbomify.com/CVE-2004-0929/): Memory corruption in n/a (critical 10.0)
- [CVE-2025-61144](https://insights.sbomify.com/CVE-2025-61144/): Memory corruption in n/a (critical 9.8)
- [CVE-2016-9533](https://insights.sbomify.com/CVE-2016-9533/): Memory corruption in n/a (critical 9.8)
- [CVE-2016-9534](https://insights.sbomify.com/CVE-2016-9534/): Memory corruption in n/a (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-7006 and fix it if it is affected.

What it is: CVE-2024-7006 is a high-severity vulnerability in Libtiff Libtiff, published on 8 Aug 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-7006 in the wild and no public exploit code.

Affected product: Libtiff Libtiff. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-7006/ (Markdown: https://insights.sbomify.com/CVE-2024-7006/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-7006
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-7006
- OSV: https://osv.dev/vulnerability/CVE-2024-7006

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-7006/
Summaries are generated and may contain mistakes; the official description above is the record.
