cve.bz

CVE-2026-120452 Out-of-bounds Write

5.2 mediumEPSS 0.2%

Medium (5.2). EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
libgphoto2 through 2.5.34 contains a heap out-of-bounds read and write vulnerability in jl2005bcd_decompress() that allows malicious USB cameras to corrupt heap memory via oversized thumbnail processing. Attackers can supply small allocation-table values and a thumbnail header byte so in-place byte-swapping exceeds the buffer by about 30 KB, leaking heap contents in preview images.

Severity

CVSS 4.0

5.2 medium
CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N

CVSS 3.1

5.4 medium
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
EPSS
0.2% (unchanged from 0.2% a week ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-17. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-787 Out-of-bounds Write
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-120452 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-120452?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-120452?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-120452 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libgphoto2no fix listedDEBIAN-CVE-2026-120452
Ubuntu22.04:LTSlibgphoto22.5.27-1ubuntu0.2UBUNTU-CVE-2026-120452 USN-9017-1
Ubuntu24.04:LTSlibgphoto22.5.31-2.1ubuntu1.2UBUNTU-CVE-2026-120452 USN-9017-1
Ubuntu26.04:LTSlibgphoto22.5.33-1ubuntu1.2UBUNTU-CVE-2026-120452 USN-9017-1
Ubuntu26.10libgphoto22.5.33-1ubuntu2.1UBUNTU-CVE-2026-120452 USN-9017-1
UbuntuPro:14.04:LTSlibgphoto22.5.3.1-1ubuntu2.2+esm1UBUNTU-CVE-2026-120452 USN-9017-1
UbuntuPro:16.04:LTSlibgphoto22.5.9-3ubuntu0.1~esm1UBUNTU-CVE-2026-120452 USN-9017-1
UbuntuPro:18.04:LTSlibgphoto22.5.16-2ubuntu0.1~esm1UBUNTU-CVE-2026-120452 USN-9017-1
UbuntuPro:20.04:LTSlibgphoto22.5.25-0ubuntu0.1+esm1UBUNTU-CVE-2026-120452 USN-9017-1
Azure Linux3libgphoto2no fix listedAZL-112523

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This flaw is rated as Moderate severity because successful exploitation requires physical access to attach a manipulated hardware device or an emulated USB peripheral, along with user interaction to trigger thumbnail extraction. While libgphoto2 is commonly installed on Red Hat Enterprise Linux desktop environments and media workstations to interface with digital cameras, default server deployments do not actively parse camera data unless invoked by an operator or automated media-import daemon. Although memory corruption can cause application crashes or disclose adjacent heap contents, an attacker cannot exploit this flaw remotely over a network.

Red Hat's mitigation

Compile binaries with buffer overflow detection flags (_FORTIFY_SOURCE=2 or higher) to terminate the process before out-of-bounds writes corrupt adjacent memory. In addition, enforce full system-level exploit mitigations—including Address Space Layout Randomization (ASLR), full RELRO with Position Independent Executables (PIE), and Control Flow Integrity (CFI)—to impede reliable memory targeting and block unauthorized code execution.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10libgphoto2Fix deferred
Red Hat Enterprise Linux 6libgphoto2Out of support scope
Red Hat Enterprise Linux 7libgphoto2Out of support scope
Red Hat Enterprise Linux 8libgphoto2Fix deferred
Red Hat Enterprise Linux 9libgphoto2Fix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-120452.

References

Check your stackJSON