CVE-2026-40386 Integer overflow in libexif

Medium 4.0 Published Updated

Attackers can crash applications or leak memory by exploiting an integer underflow in libexif's MakerNote decoding logic.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2026-40386?

CVE-2026-40386 is a medium-severity vulnerability in libexif, published on 12 Apr 2026. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

In libexif through 0.6.25, an integer underflow in size checking for Fuji and Olympus MakerNote decoding could be used by attackers to crash or leak information out of libexif-using programs.

Weakness: CWE-191

Which versions are affected by CVE-2026-40386?

It affects 1 product.

Linux distribution packages (14)
libexif AlmaLinux:10All versions0.6.24-9.el10_2.1
libexif-devel AlmaLinux:10All versions0.6.24-9.el10_2.1
libexif-doc AlmaLinux:10All versions0.6.24-9.el10_2.1
libexif Red Hat:enterprise_linux:10.2All versions0:0.6.24-9.el10_2.1
libexif-debuginfo Red Hat:enterprise_linux:10.2All versions0:0.6.24-9.el10_2.1
libexif-debugsource Red Hat:enterprise_linux:10.2All versions0:0.6.24-9.el10_2.1
libexif-devel Red Hat:enterprise_linux:10.2All versions0:0.6.24-9.el10_2.1
libexif-doc Red Hat:enterprise_linux:10.2All versions0:0.6.24-9.el10_2.1
libexif Red Hat:enterprise_linux_eus:10.0All versions0:0.6.24-9.el10_0.1
libexif-debuginfo Red Hat:enterprise_linux_eus:10.0All versions0:0.6.24-9.el10_0.1
libexif-debugsource Red Hat:enterprise_linux_eus:10.0All versions0:0.6.24-9.el10_0.1
libexif-devel Red Hat:enterprise_linux_eus:10.0All versions0:0.6.24-9.el10_0.1
libexif-doc Red Hat:enterprise_linux_eus:10.0All versions0:0.6.24-9.el10_0.1
libexif Rocky Linux:10All versions0:0.6.24-9.el10_2.1

Products include Libexif Project Libexif.

How do I fix CVE-2026-40386?

Apply the vendor's patch.

Is CVE-2026-40386 being exploited?

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

Sources

Also known as ALSA-2026:22529, AZL-82682, DEBIAN-CVE-2026-40386, GHSA-p6wp-hhx9-7jj5, JLSEC-2026-152, RHSA-2026:22529 and 3 more.

Is CVE-2026-40386 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free