Advisory

USN-8586-1

Also known as: CVE-2026-40333, CVE-2026-40334, CVE-2026-40335, CVE-2026-40336, CVE-2026-40338, CVE-2026-40339, CVE-2026-40340, CVE-2026-40341

Summary

libgphoto2 vulnerabilities

Details

It was discovered that libgphoto2 did not properly validate buffer
boundaries when parsing EOS image format data. An attacker with physical
access could possibly use this issue to obtain sensitive information.
(CVE-2026-40333)

It was discovered that libgphoto2 did not properly null-terminate buffers
when parsing Canon folder entries. An attacker with physical access could
possibly use this issue to obtain sensitive information. (CVE-2026-40334)

It was discovered that libgphoto2 did not properly validate buffer
boundaries when parsing device property values. An attacker with physical
access could possibly use this issue to obtain sensitive information.
(CVE-2026-40335)

It was discovered that libgphoto2 had a memory leak when parsing Sony
device property descriptors. An attacker with physical access could
possibly use this issue to cause a denial of service. This issue only
affected Ubuntu 26.04 LTS. (CVE-2026-40336)

It was discovered that libgphoto2 did not properly validate buffer
boundaries when parsing Sony device property enumeration data. An attacker
with physical access could possibly use this issue to obtain sensitive
information. (CVE-2026-40338)

It was discovered that libgphoto2 did not properly validate buffer
boundaries when parsing Sony device property form flags. An attacker with
physical access could possibly use this issue to obtain sensitive
information. (CVE-2026-40339)

It was discovered that libgphoto2 did not properly validate buffer
boundaries when parsing object information. An attacker with physical
access could possibly use this issue to obtain sensitive information.
(CVE-2026-40340)

It was discovered that libgphoto2 did not properly validate buffer
boundaries when parsing EOS focus information. An attacker with physical
access could possibly use this issue to cause libgphoto2 to crash,
resulting in a denial of service. (CVE-2026-40341)

Severity

Not rated by the source.

Dates

Published
2026-07-22 13:11 UTC
Modified
2026-07-22 20:59 UTC

Affected packages and fixes

libgphoto2

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 2.5.27-1ubuntu0.1 (ecosystem)

Fixed versions

2.5.27-1ubuntu0.1

Fix

  • Fixed version 2.5.27-1ubuntu0.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libgphoto2

Debian packages (deb) · Ubuntu 24.04

Affected

  • introduced 0, fixed 2.5.31-2.1ubuntu1.1 (ecosystem)

Fixed versions

2.5.31-2.1ubuntu1.1

Fix

  • Fixed version 2.5.31-2.1ubuntu1.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

libgphoto2

Debian packages (deb) · Ubuntu 26.04

Affected

  • introduced 0, fixed 2.5.33-1ubuntu1.1 (ecosystem)

Fixed versions

2.5.33-1ubuntu1.1

Fix

  • Fixed version 2.5.33-1ubuntu1.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences