CVE-2026-120451

libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver

Published Nov 2, 2026 CVSS 4.0 · 7 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

libgphoto2 before version 2.5.34 contains stack‑based and heap‑based buffer overflows in the function jl2005c_init(). By supplying an unbounded allocation table entry count, a malicious USB device that mimics a Jeilin JL2005B/C/D camera and reports 1022 or more entries can overwrite the saved return address and heap data, potentially allowing the attacker to execute arbitrary code.

Affected Systems

The vulnerability affects the libgphoto2 library, version 2.5.34 and earlier. Systems that use this version of the library to interface with USB cameras are susceptible.

Risk and Exploitability

The CVSS score of 7 indicates a high severity. EPSS is not reported, and the issue is not listed in the CISA KEV catalog, so the likelihood of public exploitation is currently unknown. The likely attack vector is an attacker connecting a crafted USB device to a vulnerable host, making the exploitation targetable at the point of USB connection.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libgphoto2 to the latest version that contains the jl2005c buffer overflow fix (currently 2.5.35 or later).
  • If an upgrade is not possible, block or restrict USB devices that could present themselves as Jeilin JL2005B/C/D cameras, limiting the risk of the unbounded allocation table entry attack.
  • Disable the jl2005c camera driver on systems that do not require it and monitor for anomalous USB activity or memory corruption events.

Generated by OpenCVE AI on November 2, 2026 at 15:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-9017-1 libgphoto2 vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Gphoto
Gphoto libgphoto2
Vendors & Products Gphoto
Gphoto libgphoto2
Type Values Removed Values Added
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.
Title libgphoto2 through 2.5.34 Buffer Overflow via jl2005c Camera Driver
Weaknesses CWE-787
References
Metrics cvssV3_1

{'score': 6.8, 'vector': 'CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 7, 'vector': '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'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 6, 2026, 7:33 PM
Reserved
Nov 2, 2026, 12:42 PM
Status
Awaiting Analysis
Published
Nov 2, 2026, 3:17 PM
Modified
Nov 6, 2026, 8:17 PM
Severity
Moderate
Public date
Nov 2, 2026, 2:29 PM