CVE-2026-40386
Medium · 4.0CVSS
4.0
EPSS
0.1%
Published
Apr 12, 2026
CISA due date
—
Cloudanix analysis
A specially crafted photo file could make some image-processing software crash or reveal small amounts of internal data.
- Exploitation
- Local Privilege
- Attacker needs
- None
- Complexity
- High
- Impact
- Data Exposure
- Component
- Library
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
CVE-2026-40386 is an integer underflow in libexif's bounds and size validation while decoding Fuji and Olympus MakerNote EXIF metadata. A malformed image or metadata blob processed by an application linked against libexif through 0.6.25 can cause incorrect length calculations during MakerNote parsing, potentially leading to an out-of-bounds read. The expected impacts are process crash and limited information disclosure from the memory of the libexif-using process; there is no indication from the provided data that this enables code execution or data modification.
Why it matters to the business
Organizations that use image-processing, media-management, document-ingestion, forensic, thumbnailing, or content-moderation workflows built on libexif may experience service instability if malformed images are processed. In some cases, sensitive process memory could be exposed through application output, crash reports, logs, or error handling paths. The current exploitation likelihood appears low: EPSS is 0.0014 with no 30-day increase, there is no known exploited-in-the-wild status, no ransomware association, and no known public exploit maturity in the provided data. However, because libexif is commonly embedded in downstream software, exposure may exist indirectly through operating system packages, desktop applications, server-side upload processors, and language bindings.
How an attack unfolds
An attacker prepares an image file or EXIF metadata payload containing malformed Fuji or Olympus MakerNote fields that trigger the integer underflow in libexif's size checks. The attacker then causes a vulnerable application to parse that file, for example by uploading it to an image-processing service, placing it in a watched directory, sending it to a user or workflow that automatically generates previews, or running it through a batch metadata extraction pipeline. When the vulnerable libexif code parses the MakerNote data, the underflow can produce an invalid bounds calculation. Depending on the calling application and runtime protections, this may crash the process or cause nearby memory contents to be read and surfaced through logs, output, crash dumps, or application responses.
How to fix it
Upgrade libexif and any software that embeds or statically links libexif once a vendor-provided fixed release or distribution backport is available. The affected range in the provided data is libexif through 0.6.25, and no fixed version was provided, so track the libexif project and operating system or application vendor advisories for patched packages. Where immediate patching is not possible, reduce exposure by disabling EXIF/MakerNote parsing when not required, stripping metadata before deeper processing, sandboxing image-processing workers, limiting file upload size and accepted image types, isolating thumbnail/metadata extraction services, and ensuring crash dumps are not exposed to users or retained with sensitive memory contents. Rebuild or update applications that statically bundle libexif rather than relying only on system package updates.
How to confirm the fix worked
Inventory systems and applications for libexif usage and confirm installed or bundled versions are not libexif 0.6.25 or earlier once fixed packages become available. On Linux systems, check package manager data and linked libraries, such as dpkg/rpm package listings, software bills of materials, container image scans, and ldd output for applications that process images. For source-built or statically linked applications, inspect build manifests, SBOMs, vendor notices, or binary strings for libexif version references. Validate mitigation by processing benign Fuji and Olympus images and confirming normal behavior, then test with vendor or maintainer-provided regression cases if available. Confirm that image-processing components run with least privilege, crash dumps are restricted, and malformed image processing does not expose memory contents in logs or responses.
Typical attack path
- Identify an application, service, or workflow that parses image EXIF metadata using libexif through 0.6.25.
- Create or obtain a malformed image containing crafted Fuji or Olympus MakerNote metadata designed to trigger the underflow in size validation.
- Deliver the image to a parsing path, such as an upload endpoint, media library, thumbnail generator, automated ingestion pipeline, email attachment processor, or local batch processing job.
- Wait for the vulnerable application to invoke libexif metadata decoding on the crafted file.
- Observe the result: service crash, worker restart, failed job, generated crash dump, anomalous application error, or possible disclosure of process memory through output or logs.
- Repeat with variations if attempting to maximize denial-of-service reliability or extract memory through application-specific error handling.
How to detect it
Look for evidence that malformed image files caused crashes or abnormal errors in applications that parse EXIF metadata. Relevant log sources include application logs for upload or media-processing services, image thumbnailer logs, batch ingestion job logs, systemd/journald, syslog, container stdout/stderr, crash-reporting systems, endpoint telemetry, and core-dump directories. Search for crashes in processes linked to libexif, especially stack traces or error messages mentioning Fuji or Olympus MakerNote parsing. Review recent externally supplied images that preceded crashes, failed metadata extraction jobs, worker restarts, segmentation faults, or abnormal memory access errors. For possible information disclosure, inspect application responses, debug logs, and crash artifacts for unexpected memory fragments or binary data emitted after EXIF parsing failures. There are no known named threat actors, KEV listing, ransomware association, or public exploit maturity in the provided data, so detection should focus on anomalous parsing behavior rather than known campaign infrastructure.
- libexif
- libexif.so
- libexif.so.12
- MakerNote
- Fuji MakerNote
- Olympus MakerNote
- exif_mnote_data_fuji_load
- exif_mnote_data_olympus_load
- exif_data_load_data
- SIGSEGV
- segmentation fault
- core dumped
- AddressSanitizer
- heap-buffer-overflow
- global-buffer-overflow
- out-of-bounds read
What your security team should do
- Perform an organization-wide inventory for libexif, including operating system packages, containers, desktop software, media services, forensic tools, and applications that statically bundle the library.
- Prioritize remediation for internet-facing or untrusted-file-processing workflows, especially upload services, thumbnail generators, document/media ingestion pipelines, and automated metadata extraction jobs.
- Monitor vendor advisories for libexif and downstream distributions because no fixed version was provided in the input; apply patched packages or backports as soon as available.
- Temporarily disable or restrict EXIF MakerNote parsing for Fuji and Olympus metadata where business functionality allows.
- Run image parsing workloads in sandboxed, low-privilege, memory-safe containment with resource limits and isolated worker processes.
- Review application logging and crash-dump configuration to prevent memory disclosure through error messages, debug logs, core dumps, or user-visible responses.
- Add detections for repeated crashes or parser errors involving libexif MakerNote decoding, especially following processing of newly uploaded or externally supplied images.
- Because EPSS is low, stable over 30 days, and the issue is not listed as known exploited, handle as risk-based patching unless the affected component processes untrusted images at scale.
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| openSUSE:Leap 16.0 | libexif | 0 | 0.6.26-160000.1.1 |
| openSUSE:Tumbleweed | libexif | 0 | 0.6.26-1.1 |
Related vulnerabilities
- CVE-2026-40385 In libexif through 0.6.25, an unsigned 32bit integer overflow in Nikon MakerNote handling… Also affects libexif
- CVE-2026-32775 libexif through 0.6.25 has a flaw in decoding MakerNotes. Also affects libexif
- CVE-2020-0452 In exif_entry_get_value of exif-entry.c, there is a possible out of bounds write due to… Also affects libexif
- CVE-2026-88833 A flaw was found in BusyBox's udhcpc DHCP client. CWE-191
- CVE-2026-44235 rabbitmq-c is a C-language AMQP client library for RabbitMQ. CWE-191
- CVE-2026-81977 Acrobat Reader is affected by an Integer Underflow (Wrap or Wraparound) vulnerability… CWE-191
- CVE-2026-66767 SAP NetWeaver Application Server for ABAP and ABAP Platform allows an unauthenticated… CWE-191
- CVE-2026-18341 IBM i 7.6, 7.5, 7.4, and 7.3 could allow a remote authenticated attacker to corrupt… CWE-191