CVE-2026-120452
libgphoto2 through 2.5.34 contains a heap out-of-bounds read and …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/jl2005c/jl2005bcd_decompress.c#L127-L130
- github.com/gphoto/libgphoto2/commit/30bf7ace6d47cfe1232ea73bde2aceb95aba4bfb
- github.com/gphoto/libgphoto2/commit/af3b8e9c542cda863fb5f2f3cfeb261bd78e4442
- github.com/gphoto/libgphoto2/issues/1326
- hackmd.io/@haindpwn/libgphoto2-jl2005c-init-alloc-table-buffer-overflow
- www.vulncheck.com/advisories/libgphoto2-through-2.5.34-heap-out-of-bounds-read-write-via-j
- nvd.nist.gov/vuln/detail/CVE-2026-120452
- cve.org/CVERecord?id=CVE-2026-120452
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.