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.
Published: 2026-11-02
Score: 7 High
EPSS: n/a
KEV: No
Impact: Remote code execution via USB device
Action: Immediate Patch
AI Analysis

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.

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

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

No advisories yet.

History

Mon, 02 Nov 2026 16:15:00 +0000

Type Values Removed Values Added
First Time appeared Gphoto
Gphoto libgphoto2
Vendors & Products Gphoto
Gphoto libgphoto2

Mon, 02 Nov 2026 14:30:00 +0000

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'}


Subscriptions

Gphoto Libgphoto2
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-02T14:29:09.529Z

Reserved: 2026-11-02T12:42:20.273Z

Link: CVE-2026-120451

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-02T15:17:28.357

Modified: 2026-11-02T15:17:28.357

Link: CVE-2026-120451

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-02T16:00:09Z

Weaknesses