libgphoto2 through 2.5.34 contains a heap out-of-bounds read and write vulnerability in jl2005bcd_decompress() that allows malicious USB cameras to corrupt heap memory via oversized thumbnail processing. Attackers can supply small allocation-table values and a thumbnail header byte so in-place byte-swapping exceeds the buffer by about 30 KB, leaking heap contents in preview images.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120452.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.5.34"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120452.json"
[
{
"deprecated": false,
"digest": {
"function_hash": "186795467781599455575681830360529645690",
"length": 4909
},
"id": "CVE-2026-120452-7e2e77e6",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb",
"target": {
"file": "camlibs/jl2005c/jl2005bcd_decompress.c",
"function": "jl2005bcd_decompress"
}
},
{
"deprecated": false,
"digest": {
"line_hashes": [
"253831431337293839390932995748194585388",
"5861968022940552983401984918824834018",
"227195544656674987569564576742528463615",
"309510561165222969414203442789323260213"
],
"threshold": 0.9
},
"id": "CVE-2026-120452-8d7ddd7a",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb",
"target": {
"file": "camlibs/jl2005c/jl2005bcd_decompress.c"
}
}
]
"2026-11-04T07:08:08Z"