Skip to content
Fencer Vulns
medium 4.0

CVE-2026-40386 json

In libexif through 0.6.25, an integer underflow in size checking for Fuji and Olympus MakerNote...

published 2026-04-12 6 mo ago modified 2026-07-18 3 mo ago also EUVD-2026-21734 , GHSA-p6wp-hhx9-7jj5 , JLSEC-2026-152

cvss
4.0
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.1%
EPSS 0.1% chance of exploitation in 30 days, percentile 3%
public exploits
0
none known

Summary

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.

Patch / fix

  • julia libexif_jll 0.6.26+0
  • libexif Debian 12 0.6.24-1+deb12u1
  • libexif Debian 13 0.6.25-1+deb13u1
  • libexif Debian 14 0.6.26-1

debian advisories DEBIAN-CVE-2026-40386

  • libexif Ubuntu 22.04 LTS 0.6.24-1ubuntu0.22.04.1
  • libexif Ubuntu 24.04 LTS 0.6.24-1ubuntu0.24.04.1
  • libexif Ubuntu 26.04 LTS 0.6.25-2ubuntu0.1

ubuntu advisories UBUNTU-CVE-2026-40386

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libexif RHEL 10.2 0.6.24-9.el10_2.1
  • libexif RHEL 9 0.6.22-6.el9_8.1
  • libexif RHEL 8 0.6.22-6.el8_10
  • libexif RHEL 7 ELS 0.6.22-3.el7_9
  • libexif RHEL 9.2 E4S 0.6.22-6.el9_2.1
  • libexif RHEL 8.4 EUS_LONG_LIFE, RHEL 8.4 AUS 0.6.22-5.el8_4.1
  • libexif enterprise linux eus 10.0 0.6.24-9.el10_0.1
  • libexif RHEL 9.6 EUS 0.6.22-6.el9_6.1

red hat advisories RHSA-2026:26567RHSA-2026:26276RHSA-2026:26292RHSA-2026:26274RHSA-2026:26224RHSA-2026:26190

  • libexif SLE Module for Package Hub 15 SP7, SLE Module for Desktop Applications 15 SP7 0.6.22-150000.5.12.1
  • libexif SLES for SAP applications 16.0, SLES 16.0 0.6.26-160000.1.1
  • libexif SLES LTSS Extended Security 12 SP5 0.6.22-8.16.1

suse advisories SUSE-SU-2026:2838-1SUSE-SU-2026:2837-1SUSE-SU-2026:22324-1

  • libexif openSUSE Leap 16.0 0.6.26-160000.1.1
  • libexif openSUSE Tumbleweed 0.6.26-1.1

opensuse advisories openSUSE-SU-2026:21023-1openSUSE-SU-2026:10717-1

  • libexif AlmaLinux 10 0.6.24-9.el10_2.1
  • libexif AlmaLinux 9 0.6.22-6.el9_8.1
  • libexif AlmaLinux 8 0.6.22-6.el8_10

almalinux advisories ALSA-2026:22529ALSA-2026:22553ALSA-2026:20929

  • libexif Rocky Linux 10 0.6.24-9.el10_2.1
  • libexif Rocky Linux 9 0.6.22-6.el9_8.1
  • libexif Rocky Linux 8 0.6.22-6.el8_10

rocky linux advisories RLSA-2026:22529RLSA-2026:22553RLSA-2026:20929

  • libexif Alpine 3.23 0.6.26-r0

alpine advisories ALPINE-CVE-2026-40386

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libexif Azure Linux 3.0 0.6.24-3

azure linux advisories AZL-82682

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-40386 updated cvss 4.0

libexif: libexif: Denial of Service and information disclosure via integer underflow in MakerNote decoding

  • Red Hat Enterprise Linux 6 libexif
    affected: workaround, no fix planned “Out of support scope”
  • Red Hat CodeReady Linux Builder EUS (v.9.6) libexif-devel 0.6.22-6.el9_6.1, libexif-debuginfo 0.6.22-6.el9_6.1, libexif-debugsource 0.6.22-6.el9_6.1
    fixed: vendor fix RHSA-2026:26224
  • Red Hat Enterprise Linux AppStream (v. 8) libexif 0.6.22-6.el8_10
    fixed: vendor fix RHSA-2026:20929
  • Red Hat Enterprise Linux AppStream (v. 9) libexif 0.6.22-6.el9_8.1
    fixed: vendor fix RHSA-2026:22553
  • Red Hat Enterprise Linux AppStream (v. 10) libexif 0.6.24-9.el10_2.1
    fixed: vendor fix RHSA-2026:22529
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) libexif 0.6.22-5.el8_4.1
    fixed: vendor fix RHSA-2026:26292
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) libexif 0.6.22-5.el8_6.1
    fixed: vendor fix RHSA-2026:26191
  • Red Hat Enterprise Linux AppStream E4S (v.8.8) libexif 0.6.22-5.el8_8.1
    fixed: vendor fix RHSA-2026:26190
show 12 more
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) libexif 0.6.22-6.el9_2.1
    fixed: vendor fix RHSA-2026:26276
  • Red Hat Enterprise Linux AppStream E4S (v.9.4) libexif 0.6.22-6.el9_4.1
    fixed: vendor fix RHSA-2026:26192
  • Red Hat Enterprise Linux AppStream EUS (v. 10.0) libexif 0.6.24-9.el10_0.1
    fixed: vendor fix RHSA-2026:26274
  • Red Hat Enterprise Linux AppStream EUS (v.9.6) libexif 0.6.22-6.el9_6.1
    fixed: vendor fix RHSA-2026:26224
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.4) libexif 0.6.22-5.el8_4.1
    fixed: vendor fix RHSA-2026:26292
  • Red Hat Enterprise Linux AppStream EUS EXTENSION (v.8.6) libexif 0.6.22-5.el8_6.1
    fixed: vendor fix RHSA-2026:26191
  • Red Hat Enterprise Linux AppStream TUS (v.8.8) libexif 0.6.22-5.el8_8.1
    fixed: vendor fix RHSA-2026:26190
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) libexif-devel 0.6.22-6.el9_8.1, libexif-debuginfo 0.6.22-6.el9_8.1, libexif-debugsource 0.6.22-6.el9_8.1
    fixed: vendor fix RHSA-2026:22553
  • Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) libexif-doc 0.6.24-9.el10_2.1, libexif-devel 0.6.24-9.el10_2.1, libexif-debuginfo 0.6.24-9.el10_2.1, libexif-debugsource 0.6.24-9.el10_2.1
    fixed: vendor fix RHSA-2026:22529
  • Red Hat Enterprise Linux CodeReady Linux Builder EUS (v. 10.0) libexif-doc 0.6.24-9.el10_0.1, libexif-devel 0.6.24-9.el10_0.1, libexif-debuginfo 0.6.24-9.el10_0.1, libexif-debugsource 0.6.24-9.el10_0.1
    fixed: vendor fix RHSA-2026:26274
  • Red Hat Enterprise Linux CRB (v. 8) libexif-devel 0.6.22-6.el8_10, libexif-debuginfo 0.6.22-6.el8_10, libexif-debugsource 0.6.22-6.el8_10
    fixed: vendor fix RHSA-2026:20929
  • Red Hat Enterprise Linux Server (v. 7 ELS) libexif 0.6.22-3.el7_9 Red Hat Enterprise Linux Server Optional (v. 7 ELS) libexif-doc 0.6.22-3.el7_9, libexif-devel 0.6.22-3.el7_9, libexif-debuginfo 0.6.22-3.el7_9
    fixed: vendor fix RHSA-2026:26567

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
6 mo ago

Exploit prediction

0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 4.0 CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:L
NVD 3.1 7.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
OSV 3.1 7.1 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

Affected packages

ecosystem package affected fixed in
julia libexif_jll
<0.6.26+0
0.6.26+0

Affected products

  • libexif project libexif

Classification

Weakness
  • CWE-191 Integer Underflow (Wrap or Wraparound)

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.