Vulnerability · Published Nov 2, 2026 · Assigned by VulnCheck
CVE-2026-120451libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver
Medium 6.8
In plain English
A medium-severity out-of-bounds write in libgphoto2 from gPhoto. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 13% of all known vulnerabilities).
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libgphoto2 | no fix listed | DEBIAN-CVE-2026-120451 |
| Debian:13 | libgphoto2 | no fix listed | DEBIAN-CVE-2026-120451 |
| Debian:14 | libgphoto2 | no fix listed | DEBIAN-CVE-2026-120451 |
| Ubuntu:22.04:LTS | libgphoto2 | no fix listed | UBUNTU-CVE-2026-120451 |
| Ubuntu:24.04:LTS | libgphoto2 | no fix listed | UBUNTU-CVE-2026-120451 |
| Ubuntu:26.04:LTS | libgphoto2 | no fix listed | UBUNTU-CVE-2026-120451 |
| Ubuntu:26.10 | libgphoto2 | no fix listed | UBUNTU-CVE-2026-120451 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| gPhoto | libgphoto2 | 0 – through 2.5.34 |
Weakness: CWE-787 · Vector: CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/gphoto/libgphoto2/issues/1326 issue-tracking
- https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442 patch
- https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e patch
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138-L154 technical-description
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow technical-description
- VulnCheck Advisory: libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver third-party-advisory