libgphoto2 through 2.5.34 contains stack-based and heap-based buffer overflow vulnerabilities in jl2005c_init() that allow malicious USB devices to corrupt memory by supplying an unbounded allocation table entry count. Attackers can connect a spoofed Jeilin JL2005B/C/D camera reporting 1022 or more entries to overwrite the saved return address and heap data, potentially achieving code execution.
{
"cna_assigner": "VulnCheck",
"cwe_ids": [
"CWE-787"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120451.json"
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"last_affected": "2.5.34"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
},
{
"range": [
{
"fixed": "af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "6a3393dd996502457ab965432cf0b2035278825e"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120451.json"
[
{
"deprecated": false,
"digest": {
"line_hashes": [
"147924273785379862497527355461467072",
"55624524925321124613422540835834316983",
"685218365551512656931362727726274231",
"301461502251346126170201740890273980760"
],
"threshold": 0.9
},
"id": "CVE-2026-120451-1f90f770",
"signature_type": "Line",
"signature_version": "v1",
"source": "https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e",
"target": {
"file": "camlibs/jl2005c/jl2005c.c"
}
},
{
"deprecated": false,
"digest": {
"function_hash": "235903538656771472778761635661055659924",
"length": 4136
},
"id": "CVE-2026-120451-a5130170",
"signature_type": "Function",
"signature_version": "v1",
"source": "https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e",
"target": {
"file": "camlibs/jl2005c/jl2005c.c",
"function": "jl2005c_init"
}
}
]
"2026-11-11T13:21:00Z"