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.
{
"cna_assigner": "mitre",
"cwe_ids": [
"CWE-191"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40386.json"
}{
"extracted_events": [
{
"introduced": "0"
},
{
"last_affected": "0.6.25"
}
],
"cpe": "cpe:2.3:a:libexif_project:libexif:*:*:*:*:*:*:*:*",
"source": [
"CPE_RANGE",
"REFERENCES"
]
}
[
{
"target": {
"function": "exif_mnote_data_olympus_get_value",
"file": "libexif/olympus/exif-mnote-data-olympus.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/libexif/libexif/commit/dc6eac6e9655d14d0779d99e82d0f5f442d2f34b",
"digest": {
"function_hash": "89651194716944256166666105002455224126",
"length": 292.0
},
"id": "CVE-2026-40386-5d76fe76"
},
{
"target": {
"function": "exif_mnote_data_fuji_get_value",
"file": "libexif/fuji/exif-mnote-data-fuji.c"
},
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/libexif/libexif/commit/dc6eac6e9655d14d0779d99e82d0f5f442d2f34b",
"digest": {
"function_hash": "89651194716944256166666105002455224126",
"length": 292.0
},
"id": "CVE-2026-40386-8c7e5880"
},
{
"target": {
"file": "libexif/olympus/exif-mnote-data-olympus.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/libexif/libexif/commit/dc6eac6e9655d14d0779d99e82d0f5f442d2f34b",
"digest": {
"threshold": 0.9,
"line_hashes": [
"134657048840523953532291051655678286599",
"330620488256842591126409580115434617653",
"318388110906489116545935652924689243310",
"201666159675207808264155098465449719230"
]
},
"id": "CVE-2026-40386-970107f3"
},
{
"target": {
"file": "libexif/fuji/exif-mnote-data-fuji.c"
},
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"source": "https://github.com/libexif/libexif/commit/dc6eac6e9655d14d0779d99e82d0f5f442d2f34b",
"digest": {
"threshold": 0.9,
"line_hashes": [
"79348447117930777702955799481112448007",
"228581815217580039735945598299510135846",
"156379962593853258986688813785805367582",
"86655364894345662921658811840849055363"
]
},
"id": "CVE-2026-40386-f3dbecf1"
}
]
"2026-08-12T16:24:04Z"
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40386.json"