{"id":"CVE-2026-120451","summary":"libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver","details":"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.","modified":"2026-11-11T13:21:00.371873595Z","published":"2026-11-02T14:29:09.529Z","database_specific":{"cna_assigner":"VulnCheck","cwe_ids":["CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120451.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/120xxx/CVE-2026-120451.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120451"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-buffer-overflow-via-jl2005c-camera-driver"},{"type":"REPORT","url":"https://github.com/gphoto/libgphoto2/issues/1326"},{"type":"FIX","url":"https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e"},{"type":"FIX","url":"https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"},{"type":"PACKAGE","url":"https://github.com/gphoto/libgphoto2"},{"type":"ARTICLE","url":"https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138-L154"},{"type":"ARTICLE","url":"https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gphoto/libgphoto2","events":[{"introduced":"0"},{"fixed":"af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"},{"fixed":"6a3393dd996502457ab965432cf0b2035278825e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"last_affected":"2.5.34"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"af3b8e9c542cda863fb5f2f3cfeb261bd78e4442"}]},{"range":[{"fixed":"6a3393dd996502457ab965432cf0b2035278825e"}],"source":"REFERENCES_COMMIT"}]}}],"versions":["v2.5.34","libgphoto2-2_5_34-release","v2.5.32","libgphoto2-2_5_32-release","v2.5.31","libgphoto2-2_5_31-release","v2.5.30","libgphoto2-2_5_30-release","v2.5.29","libgphoto2-2_5_29-release","v2.5.28","libgphoto2-2_5_28-release","v2.5.27","libgphoto2-2_5_27-release","v2.5.26","libgphoto2-2_5_26-release","v2.5.25","libgphoto2-2_5_25-release","v2.5.24","libgphoto2-2_5_24-release","libgphoto2-2_5_23-release","libgphoto2-2_5_22-release","libgphoto2-2_5_21-release","libgphoto2-2_5_20-release","libgphoto2-2_5_19-release","libgphoto2-2_5_18-release","libgphoto2-2_5_17-release","libgphoto2-2_5_16-release","libgphoto2-2_5_15-release","libgphoto2-2_5_14-release","libgphoto2-2_5_13-release","libgphoto2-2_5_12-release","libgphoto2-2_5_11-release","libgphoto2-2_5_10-release","libgphoto2-2_5_9-release","libgphoto2-2_5_8-release","libgphoto2-2_5_7-release","libgphoto2-2_5_6-release","libgphoto2-2_5_5_1-release","libgphoto2-2_5_5-release","libgphoto2-2_5_4-release","libgphoto2-2_5_3_1-release","libgphoto2-2_5_3-release","libgphoto2-2_5_2-release","libgphoto2-2_5_1_1-release","libgphoto2-2_5_1-release","libgphoto2-2_5_0-release"],"database_specific":{"vanir_signatures":[{"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":{"line_hashes":["147924273785379862497527355461467072","55624524925321124613422540835834316983","685218365551512656931362727726274231","301461502251346126170201740890273980760"],"threshold":0.9}},{"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"},"deprecated":false,"digest":{"length":4136,"function_hash":"235903538656771472778761635661055659924"}}],"vanir_signatures_modified":"2026-11-11T13:21:00Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-120451.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}