
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-40385 is an integer overflow vulnerability in libexif through version 0.6.25, affecting Nikon MakerNote handling during EXIF metadata parsing. The flaw is triggered when processing specially crafted image files on 32-bit systems, potentially leading to application crashes or memory information leaks. It was published on April 12, 2026, with a patch committed to the libexif repository shortly after. The vulnerability carries a CVSS v3.1 base score of 7.1 (High) per NVD, though ENISA's EUVD rates it lower at 4.0 (GitHub Advisory, Red Hat CVE).
The root cause is an unsigned 32-bit integer overflow (CWE-190) in the exif_mnote_data_olympus_load function within libexif/olympus/exif-mnote-data-olympus.c. Specifically, the expression o2 = datao + exif_get_long(buf + o2, n->order) could overflow on systems where size_t is 32-bit unsigned, causing out-of-bounds reads of data buffers and subsequent misparse of EXIF metadata or crashes. The fix adds a CHECKOVERFLOW guard before the addition to prevent the overflow condition. Exploitation requires a local attacker to supply a maliciously crafted image file with specially constructed Nikon MakerNote metadata to an application using libexif on a 32-bit system (libexif commit, GitHub Advisory).
Successful exploitation can result in denial of service (application crash) or information disclosure through out-of-bounds memory reads on affected 32-bit systems. The vulnerability does not affect integrity and has no impact on 64-bit systems where size_t is 64-bit. Applications and services that process untrusted image files using libexif — such as photo management tools, media servers, or image processing pipelines — are at risk of service disruption or leaking sensitive in-memory data (GitHub Advisory, Red Hat CVE).
There is no known public proof-of-concept exploit and no evidence of in-the-wild exploitation as of the time of reporting. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.013% (0.000130), reflecting a very low probability of exploitation in the near term. Exploitation is constrained to local attackers on 32-bit systems, significantly limiting the attack surface (GitHub Advisory).
datao + exif_get_long(buf + o2, n->order) to overflow a 32-bit size_t.exif_mnote_data_olympus_load.Update libexif to a version newer than 0.6.25 that includes the security fix committed at libexif commit 93003b9. Distribution-specific patches have been released for Fedora, Debian (DLA-4558-1), AlmaLinux (ALSA-2026-20929), Red Hat (RHSA-2026:20929, RHSA-2026:22553), Slackware, openSUSE, and Mageia. As a workaround, restrict local user access to systems processing untrusted image files and avoid running libexif-dependent applications on 32-bit systems where patching is not immediately possible (Red Hat Errata, Debian LTS, GitHub Advisory).
The vulnerability received routine coverage from Linux distribution security teams, with advisories issued by Red Hat, Debian, Fedora, AlmaLinux, Rocky Linux, Slackware, openSUSE, and Mageia. Microsoft also published an advisory for affected Azure Linux packages (azl3_libexif and cbl2_libexif). No notable researcher commentary or significant social media discussion has been observed, consistent with the vulnerability's limited scope (32-bit systems only) and absence of public exploit code (Microsoft MSRC, Red Hat CVE).
Fix availability across major Linux distributions and their releases.
bookworm
libexif: 0.6.24-1+deb12u1
sid
libexif: 0.6.26-1
trixie
libexif: 0.6.25-1+deb13u1
bionic (esm-infra)
libexif
devel
libexif
focal (esm-infra)
libexif
jammy
libexif: 0.6.24-1ubuntu0.22.04.1
noble
libexif: 0.6.24-1ubuntu0.24.04.1
resolute
libexif: 0.6.25-2ubuntu0.1
trusty (esm-infra-legacy)
libexif
xenial (esm-infra-legacy)
libexif
RHEL 8
:appstream:libexif-0:0.6.22-6.el8_10.src
RHEL 9
:appstream:libexif-0:0.6.22-6.el9_2.1.src
RHEL 10
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."