All reports
Medium

libgphoto2: libgphoto2: arbitrary code execution via buffer overflow in jl2005c camera driver

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-120451

Probability of exploitation in the next 30 days: 0.26%

FIRST EPSS · 2026-11-22

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.

A flaw was found in libgphoto2. An attacker can execute arbitrary code or cause a denial of service (DoS) by connecting a malicious USB device to the system. This vulnerability occurs because the jl2005c camera driver fails to validate the allocation table entry count during device initialization, leading to stack- and heap-based buffer overflows.