Vulnerability Description
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.
CVSS Score
MEDIUM
Related Weaknesses (CWE)
References
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138
- https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278
- https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e
- https://github.com/gphoto/libgphoto2/issues/1326
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow
- https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-buffer-overflow-v
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow
FAQ
What is CVE-2026-120451?
CVE-2026-120451 is a vulnerability with a CVSS score of 6.8 (MEDIUM). 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 ...
How severe is CVE-2026-120451?
CVE-2026-120451 has been rated MEDIUM with a CVSS base score of 6.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-120451?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.