CVE-2025-8176: LibTIFF tiffmedian.c get_histogram use after free

Published Jul 26, 2025
·
Updated

A vulnerability was found in LibTIFF up to 4.7.0. It has been declared as critical. This vulnerability affects the function gethistogram of the file tools/tiffmedian.c. The manipulation leads to use after free. The attack needs to be approached locally. The exploit has been disclosed to the public and may be used. The patch is identified as fe10872e53efba9cc36c66ac4ab3b41a839d5172. It is recommended to apply a patch to fix this issue.

Other sources

LibTIFF tiffmedian.c gethistogram use after free

— Microsoft

Affected Software

13 affected componentsFixes available
LibTIFF libtiff<=4.7.0
LibTIFF libtiff<=4.7.0
All of the following
azurelinux/libtiff<4.6.0-8
4.6.0-8
Microsoft CBL-Mariner=2.0
All of the following
azurelinux/libtiff<4.6.0-7
4.6.0-7
Microsoft Azure Linux=3.0
debian/tiff<=4.5.0-6+deb12u4, <=4.7.0-3+deb13u3
4.7.1-1
ubuntu/tiff<4.0.3-7ubuntu0.11+esm15
4.0.3-7ubuntu0.11+esm15
ubuntu/tiff<4.0.6-1ubuntu0.8+esm18
4.0.6-1ubuntu0.8+esm18
ubuntu/tiff<4.0.9-5ubuntu0.10+esm8
4.0.9-5ubuntu0.10+esm8
ubuntu/tiff<4.1.0+git191117-2ubuntu0.20.04.14+esm1
4.1.0+git191117-2ubuntu0.20.04.14+esm1
ubuntu/tiff<4.3.0-6ubuntu0.11
4.3.0-6ubuntu0.11
ubuntu/tiff<4.5.1+git230720-4ubuntu2.3
4.5.1+git230720-4ubuntu2.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 4.6.0-8
  2. Upgrade

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

    Fixed in 4.6.0-7
  3. Upgrade

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

    Fixed in 4.7.1-1
  4. Upgrade

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

    Fixed in 4.0.3-7ubuntu0.11+esm15
  5. Upgrade

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

    Fixed in 4.0.6-1ubuntu0.8+esm18
  6. Upgrade

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

    Fixed in 4.0.9-5ubuntu0.10+esm8
  7. Upgrade

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

    Fixed in 4.1.0+git191117-2ubuntu0.20.04.14+esm1
  8. Upgrade

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

    Fixed in 4.3.0-6ubuntu0.11
  9. Upgrade

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

    Fixed in 4.5.1+git230720-4ubuntu2.3
  10. Upgrade

    Upgrade LibTIFF to a version that resolves this vulnerability.

    Patch fe10872e53efba9cc36c66ac4ab3b41a839d5172

Event History

Jul 26, 2025
CVE Published
via MITRE·03:32 AM
Data Sourced
via MITRE·03:32 AM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·04:01 AM
DescriptionSeverityAffected Software
Data Sourced
via OSV·04:16 AM
DescriptionSeverityAffected Software
Data Sourced
via NVD·04:16 AM
DescriptionSeverityWeakness
Aug 27, 2025
Event
via FIRST·12:00 AM
Sep 4, 2025
Data Sourced
via Microsoft·09:22 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·09:22 AM
Affected Software
Updated
via Microsoft·09:22 AM
WeaknessAffected Software
Sep 11, 2025
Data Sourced
via NVD·04:58 PM
RemedyAffected Software
Updated
via NVD·04:58 PM
Severity
Jan 30, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jun 17, 2026
Updated
via NVD·10:06 AM
Severity
Event
via NVD·10:06 AM
Nov 14, 2026
Updated
via Microsoft·09:11 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-8176?

CVE-2025-8176 is classified as a critical severity vulnerability.

2

How do I fix CVE-2025-8176?

To fix CVE-2025-8176, update LibTIFF to version 4.7.1 or later.

3

What type of vulnerability is CVE-2025-8176?

CVE-2025-8176 is a use after free vulnerability affecting the get_histogram function.

4

Which versions of LibTIFF are affected by CVE-2025-8176?

CVE-2025-8176 affects LibTIFF versions up to and including 4.7.0.

5

Is CVE-2025-8176 exploitable remotely?

CVE-2025-8176 requires local access for exploitation.

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