cve.bz

CVE-2026-40386 libexif project libexif: Integer Underflow (Wrap or Wraparound)

7.1 highEPSS 0.1%Fix available

High (7.1) in libexif project libexif. EPSS 0.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.1 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
EPSS
0.1% (unchanged from 0.1% a week ago; 0.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 4th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-04-14. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-191 Integer Underflow (Wrap or Wraparound)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-40386 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-40386?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-40386?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-40386 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
libexif project libexifthrough 0.6.25

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11libexif0.6.22-3+deb11u1DLA-4558-1
Debian12libexif0.6.24-1+deb12u1DEBIAN-CVE-2026-40386
Debian13libexif0.6.25-1+deb13u1DEBIAN-CVE-2026-40386
Debian14libexif0.6.26-1DEBIAN-CVE-2026-40386
Ubuntu16.04:LTS, 18.04:LTS, 20.04:LTS and 2 morelibexifno fix listedUBUNTU-CVE-2026-40386
Ubuntu22.04:LTSlibexif0.6.24-1ubuntu0.22.04.1UBUNTU-CVE-2026-40386 USN-8531-1
Ubuntu24.04:LTSlibexif0.6.24-1ubuntu0.24.04.1UBUNTU-CVE-2026-40386 USN-8531-1
Ubuntu26.04:LTSlibexif0.6.25-2ubuntu0.1UBUNTU-CVE-2026-40386 USN-8531-1
Red Hatenterprise_linux:8::appstreamlibexif, libexif-debuginfo, libexif-debugsource0:0.6.22-6.el8_10RHSA-2026:20929
Red Hatenterprise_linux:8::crblibexif-devel, libexif-debuginfo, libexif-debugsource0:0.6.22-6.el8_10RHSA-2026:20929
Red Hatenterprise_linux:9::appstreamlibexif, libexif-debuginfo, libexif-debugsource0:0.6.22-6.el9_8.1RHSA-2026:22553
Red Hatenterprise_linux:9::crblibexif-devel, libexif-debuginfo, libexif-debugsource0:0.6.22-6.el9_8.1RHSA-2026:22553
Red Hatenterprise_linux:10.2libexif, libexif-doc, libexif-devel and 2 more0:0.6.24-9.el10_2.1RHSA-2026:22529
Red Hatenterprise_linux_eus:10.0libexif, libexif-doc, libexif-devel and 2 more0:0.6.24-9.el10_0.1RHSA-2026:26274
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamlibexif, libexif-debuginfo, libexif-debugsource0:0.6.22-5.el8_4.1RHSA-2026:26292
Red Hatrhel_aus:8.6::appstream, rhel_eus_long_life:8.6::appstreamlibexif, libexif-debuginfo, libexif-debugsource0:0.6.22-5.el8_6.1RHSA-2026:26191
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamlibexif, libexif-debuginfo, libexif-debugsource0:0.6.22-5.el8_8.1RHSA-2026:26190
Red Hatrhel_e4s:9.2::appstreamlibexif, libexif-debuginfo, libexif-debugsource0:0.6.22-6.el9_2.1RHSA-2026:26276
Red Hatrhel_e4s:9.4::appstreamlibexif, libexif-debuginfo, libexif-debugsource0:0.6.22-6.el9_4.1RHSA-2026:26192
Red Hatrhel_els:7libexif, libexif-doc, libexif-devel and 1 more0:0.6.22-3.el7_9RHSA-2026:26567
2 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Desktop Applications 15 SP7, Linux Enterprise Module for Package Hub 15 SP7libexif0.6.22-150000.5.12.1SUSE-SU-2026:2837-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0libexif0.6.26-160000.1.1SUSE-SU-2026:22324-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5libexif0.6.22-8.16.1SUSE-SU-2026:2838-1
openSUSELeap 16.0libexif0.6.26-160000.1.1openSUSE-SU-2026:21023-1
openSUSETumbleweedlibexif0.6.26-1.1openSUSE-SU-2026:10717-1
AlmaLinux8libexif, libexif-devel0.6.22-6.el8_10ALSA-2026:20929
AlmaLinux9libexif, libexif-devel0.6.22-6.el9_8.1ALSA-2026:22553
AlmaLinux10libexif, libexif-doc, libexif-devel0.6.24-9.el10_2.1ALSA-2026:22529
Rocky Linux8libexif0:0.6.22-6.el8_10RLSA-2026:20929
Rocky Linux9libexif0:0.6.22-6.el9_8.1RLSA-2026:22553
Rocky Linux10libexif0:0.6.24-9.el10_2.1RLSA-2026:22529
Alpinev3.23libexif0.6.26-r0ALPINE-CVE-2026-40386
Azure Linux3libexif0.6.24-3AZL-82682

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Moderate impact. An integer underflow in libexif's Fuji and Olympus MakerNote decoding could allow an attacker to cause a denial of service or information disclosure. This vulnerability affects programs that process specially crafted image files utilizing libexif.

Red Hat's mitigation

To mitigate this issue, users should avoid processing untrusted image files with applications that utilize libexif. Restricting the source of image files to trusted origins can reduce the risk of exploitation.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libexif-0:0.6.24-9.el10_2.1Fixed 2026-06-03RHSA-2026:22529
Red Hat Enterprise Linux 10.0 Extended Update Supportlibexif-0:0.6.24-9.el10_0.1Fixed 2026-06-16RHSA-2026:26274
Red Hat Enterprise Linux 7 Extended Lifecycle Supportlibexif-0:0.6.22-3.el7_9Fixed 2026-06-17RHSA-2026:26567
Red Hat Enterprise Linux 8libexif-0:0.6.22-6.el8_10Fixed 2026-05-26RHSA-2026:20929
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportlibexif-0:0.6.22-5.el8_4.1Fixed 2026-06-16RHSA-2026:26292
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onlibexif-0:0.6.22-5.el8_4.1Fixed 2026-06-16RHSA-2026:26292
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibexif-0:0.6.22-5.el8_6.1Fixed 2026-06-16RHSA-2026:26191
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onlibexif-0:0.6.22-5.el8_6.1Fixed 2026-06-16RHSA-2026:26191
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicelibexif-0:0.6.22-5.el8_8.1Fixed 2026-06-16RHSA-2026:26190
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionslibexif-0:0.6.22-5.el8_8.1Fixed 2026-06-16RHSA-2026:26190
Red Hat Enterprise Linux 9libexif-0:0.6.22-6.el9_8.1Fixed 2026-06-03RHSA-2026:22553
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionslibexif-0:0.6.22-6.el9_2.1Fixed 2026-06-16RHSA-2026:26276
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionslibexif-0:0.6.22-6.el9_4.1Fixed 2026-06-16RHSA-2026:26192
Red Hat Enterprise Linux 9.6 Extended Update Supportlibexif-0:0.6.22-6.el9_6.1Fixed 2026-06-16RHSA-2026:26224
Red Hat Enterprise Linux 6libexifOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-40386.

References

Check your stackJSON