Skip to content

CVE-2026-138158 libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()

HighCVSS 7.0 EPSS 0.44%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

Description

libgphoto2 through 2.5.34 contains a stack buffer overflow in sierra_get_string_register() that lets a malicious sierra-protocol camera or USB device overwrite stack memory. When files are listed, the device can answer the file-name register with an oversized packet, writing up to 32 KB past small stack buffers to cause crashes or possible code execution.

Upgrade path

8 packages: 1 fixed, 7 with no fix yet.

PackageAffectedFixed inStatus
debian/libgphoto2(Debian 12) = 2.5.30-1; = 2.5.31-1; = 2.5.31-2; = 2.5.31-2.1 +8 more No fix listed No fix yet
debian/libgphoto2(Debian 13) = 2.5.31-4; = 2.5.32-1; = 2.5.33-1; = 2.5.34-1 +2 more No fix listed No fix yet
debian/libgphoto2(Debian 14) = 2.5.31-4; = 2.5.32-1; = 2.5.33-1; = 2.5.34-1 +2 more No fix listed No fix yet
ubuntu/libgphoto2(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/libgphoto2(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/libgphoto2(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/libgphoto2(Ubuntu 26.10) All versions No fix listed No fix yet
gphoto libgphoto2 <= 2.5.34 after 2.5.34 Fixed

Affected products

ProductAffected versionsFixed in
debian/libgphoto2(Debian:12) All versions No fix listed
debian/libgphoto2(Debian:14) All versions No fix listed
debian/libgphoto2(Debian:13) All versions No fix listed
gphoto libgphoto2 <= 2.5.34 No fix listed
ubuntu/libgphoto2(Ubuntu:22.04) All versions No fix listed
ubuntu/libgphoto2(Ubuntu:24.04) All versions No fix listed
ubuntu/libgphoto2(Ubuntu:26.04) All versions No fix listed
debian/libgphoto2(Debian:12) = 2.5.30-1 No fix listed
debian/libgphoto2(Debian:12) = 2.5.31-1 No fix listed
debian/libgphoto2(Debian:12) = 2.5.31-2 No fix listed
debian/libgphoto2(Debian:12) = 2.5.31-2.1 No fix listed
debian/libgphoto2(Debian:12) = 2.5.31-2.1~exp1 No fix listed
debian/libgphoto2(Debian:12) = 2.5.31-3 No fix listed
debian/libgphoto2(Debian:12) = 2.5.31-4 No fix listed
debian/libgphoto2(Debian:12) = 2.5.32-1 No fix listed
debian/libgphoto2(Debian:12) = 2.5.33-1 No fix listed
debian/libgphoto2(Debian:12) = 2.5.34-1 No fix listed
debian/libgphoto2(Debian:12) = 2.5.34-2 No fix listed
debian/libgphoto2(Debian:13) = 2.5.31-4 No fix listed
debian/libgphoto2(Debian:13) = 2.5.32-1 No fix listed
debian/libgphoto2(Debian:13) = 2.5.33-1 No fix listed
debian/libgphoto2(Debian:13) = 2.5.34-1 No fix listed
debian/libgphoto2(Debian:13) = 2.5.34-2 No fix listed
debian/libgphoto2(Debian:14) = 2.5.31-4 No fix listed
debian/libgphoto2(Debian:14) = 2.5.32-1 No fix listed
Show 4 more
ProductAffected versionsFixed in
debian/libgphoto2(Debian:14) = 2.5.33-1 No fix listed
debian/libgphoto2(Debian:14) = 2.5.34-1 No fix listed
debian/libgphoto2(Debian:14) = 2.5.34-2 No fix listed
ubuntu/libgphoto2(Ubuntu:26.10) All versions No fix listed

References