Summary
It was discovered that libgphoto2 incorrectly handled certain Sierra
protocol responses. A malicious camera or USB device could use this issue to
cause a stack buffer overflow, resulting in a denial of service or
possibly arbitrary code execution.
Fixed packages 8
| Release | Package | Fixed in |
|---|---|---|
| Ubuntu · 22.04 LTS 22.04:LTS | libgphoto2 | 2.5.27-1ubuntu0.3 |
| Ubuntu · 24.04 LTS 24.04:LTS | libgphoto2 | 2.5.31-2.1ubuntu1.3 |
| Ubuntu · 26.04 LTS 26.04:LTS | libgphoto2 | 2.5.33-1ubuntu1.3 |
| Ubuntu · 26.10 | libgphoto2 | 2.5.33-1ubuntu2.2 |
| Ubuntu · Pro 14.04 LTS Pro:14.04:LTS | libgphoto2 | 2.5.3.1-1ubuntu2.2+esm2 |
| Ubuntu · Pro 16.04 LTS Pro:16.04:LTS | libgphoto2 | 2.5.9-3ubuntu0.1~esm2 |
| Ubuntu · Pro 18.04 LTS Pro:18.04:LTS | libgphoto2 | 2.5.16-2ubuntu0.1~esm2 |
| Ubuntu · Pro 20.04 LTS Pro:20.04:LTS | libgphoto2 | 2.5.25-0ubuntu0.1+esm2 |
Vulnerabilities 1
-
Medium 6.6
libgphoto2 through 2.5.34 Stack Buffer Overflow via sierra_get_string_register()
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…
References
-
report
https://ubuntu.com/security/CVE-2026-138158