CVE-2026-120451
published high CVSS 4.0 · 7.0libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gPhoto | — | libgphoto20 through 2.5.34 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| Amazon Linux | AL2 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
| Ubuntu | bionic | libgphoto2 | Advisory build | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | focal | libgphoto2 | Advisory build | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu | jammy | libgphoto2 | Advisory build | 2.5.27-1ubuntu0.2 | USN-9017-1 |
| Ubuntu | noble | libgphoto2 | Advisory build | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu | resolute | libgphoto2 | Advisory build | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu | stonking | libgphoto2 | Advisory build | 2.5.33-1ubuntu2.1 | USN-9017-1 |
Show 26 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Ubuntu | trusty | libgphoto2 | Advisory build | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
| Ubuntu | xenial | libgphoto2 | Advisory build | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | bionic | libgphoto2-6 | Advisory build | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | bionic | libgphoto2-l10n | Advisory build | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | bionic | libgphoto2-port12 | Advisory build | 2.5.16-2ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | focal | libgphoto2-6 | Advisory build | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu | focal | libgphoto2-l10n | Advisory build | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu | focal | libgphoto2-port12 | Advisory build | 2.5.25-0ubuntu0.1+esm1 | USN-9017-1 |
| Ubuntu | jammy | libgphoto2-6 | Advisory build | 2.5.27-1ubuntu0.2 | USN-9017-1 |
| Ubuntu | jammy | libgphoto2-l10n | Advisory build | 2.5.27-1ubuntu0.2 | USN-9017-1 |
| Ubuntu | jammy | libgphoto2-port12 | Advisory build | 2.5.27-1ubuntu0.2 | USN-9017-1 |
| Ubuntu | noble | libgphoto2-6t64 | Advisory build | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu | noble | libgphoto2-l10n | Advisory build | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu | noble | libgphoto2-port12t64 | Advisory build | 2.5.31-2.1ubuntu1.2 | USN-9017-1 |
| Ubuntu | resolute | libgphoto2-6t64 | Advisory build | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu | resolute | libgphoto2-l10n | Advisory build | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu | resolute | libgphoto2-port12t64 | Advisory build | 2.5.33-1ubuntu1.2 | USN-9017-1 |
| Ubuntu | stonking | libgphoto2-6t64 | Advisory build | 2.5.33-1ubuntu2.1 | USN-9017-1 |
| Ubuntu | stonking | libgphoto2-l10n | Advisory build | 2.5.33-1ubuntu2.1 | USN-9017-1 |
| Ubuntu | stonking | libgphoto2-port12t64 | Advisory build | 2.5.33-1ubuntu2.1 | USN-9017-1 |
| Ubuntu | trusty | libgphoto2-6 | Advisory build | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
| Ubuntu | trusty | libgphoto2-l10n | Advisory build | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
| Ubuntu | trusty | libgphoto2-port10 | Advisory build | 2.5.3.1-1ubuntu2.2+esm1 | USN-9017-1 |
| Ubuntu | xenial | libgphoto2-6 | Advisory build | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | xenial | libgphoto2-l10n | Advisory build | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
| Ubuntu | xenial | libgphoto2-port12 | Advisory build | 2.5.9-3ubuntu0.1~esm1 | USN-9017-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.8 | medium | VulnCheck · cna | CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gPhoto | libgphoto2 | 0 through 2.5.34 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-787 Out-of-bounds Write
References
6- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005c.c#L138-L154
- https://github.com/gphoto/libgphoto2/commit/6a3393dd996502457ab965432cf0b2035278825e
- https://github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442
- https://github.com/gphoto/libgphoto2/issues/1326
- https://hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow
- VulnCheck Advisory: libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver https://www.vulncheck.com/advisories/libgphoto2-through-2.5.34-buffer-overflow-via-jl2005c-camera-driver
Provider assertions
2VulnCheck · cna
libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8f4bd94a2ec5a80377b6826e6866f2c35a06c7da70cb228c2f839ff246ae9dd6
- Ingested
- 07 Nov 2026, 23:39:52 UTC
- Source record
- Official CVE record