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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| gphoto | libgphoto2 | ≤ 2.5.34 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libgphoto2 | No fix yet | — |
| Debian 13 | libgphoto2 | No fix yet | — |
| Debian 12 | libgphoto2 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libgphoto2 | 2.5.33-1ubuntu2.2 | USN-9476-1 |
| Ubuntu 26.04 LTS | libgphoto2 | 2.5.33-1ubuntu1.3 | USN-9476-1 |
| Ubuntu 24.04 LTS | libgphoto2 | 2.5.31-2.1ubuntu1.3 | USN-9476-1 |
| Ubuntu 22.04 LTS | libgphoto2 | 2.5.27-1ubuntu0.3 | USN-9476-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | libgphoto2 | 2.5.25-0ubuntu0.1+esm2 | USN-9476-1 |
| Ubuntu Pro 18.04 LTS | libgphoto2 | 2.5.16-2ubuntu0.1~esm2 | USN-9476-1 |
| Ubuntu Pro 16.04 LTS | libgphoto2 | 2.5.9-3ubuntu0.1~esm2 | USN-9476-1 |
| Ubuntu Pro 14.04 LTS | libgphoto2 | 2.5.3.1-1ubuntu2.2+esm2 | USN-9476-1 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | libgphoto2 | No fix yet | — |
Advisories 1
- USN-9476-1 libgphoto2 vulnerability Ubuntu Security Notices (USN) · Dec 4, 2026
References
- GitHub Security Advisory (GHSA-4f44-frcc-8824) vendor-advisory
- https://github.com/gphoto/libgphoto2/commit/c4cd525d7461c26b89b4705dc74fc4b84d57ff3a patch
- https://github.com/gphoto/libgphoto2/blob/v2.5.34/camlibs/sierra/library.c#L1285-L1289 technical-description
- https://github.com/gphoto/libgphoto2 product
- VulnCheck Advisory: libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register() third-party-advisory