Catálogo de CVE

CVE-2026-138158

libgphoto2 affected and fixed versions

[Catálogo de CVE]

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.

Gravedad
High · CVSS 4.0 · 7.0CVSS:4.0/AV:P/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.44% · Dec 4, 2026

Projects and upstream resources

Reported versions and fixes

Each observation applies to its named package, distribution, and release. Distribution backports can fix a vulnerability while retaining an older upstream version number.

Distribution / releasePackageVersionStatusSource
Ubuntu26.10libgphoto22.5.33-1ubuntu2.2Fixed[USN-9476-1]
Ubuntu26.04libgphoto22.5.33-1ubuntu1.3Fixed[USN-9476-1]
Ubuntu24.04libgphoto22.5.31-2.1ubuntu1.3Fixed[USN-9476-1]
Ubuntu22.04libgphoto22.5.27-1ubuntu0.3Fixed[USN-9476-1]
More observations (36)
Distribution / releasePackageVersionStatusSource
Debianbookwormlibgphoto2Not reportedAffectedDistribution reports no fix[CVE-2026-138158]
Debianbookwormlibgphoto22.5.30-1Affected[CVE-2026-138158]
Debianforkylibgphoto2Not reportedAffectedDistribution reports no fix[CVE-2026-138158]
Debianforkylibgphoto22.5.34-2Affected[CVE-2026-138158]
Debiansidlibgphoto2Not reportedAffectedDistribution reports no fix[CVE-2026-138158]
Debiansidlibgphoto22.5.34-2Affected[CVE-2026-138158]
Debiantrixielibgphoto2Not reportedAffectedDistribution reports no fix[CVE-2026-138158]
Debiantrixielibgphoto22.5.31-4Affected[CVE-2026-138158]
Ubuntu22.04libgphoto22.5.27-1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu22.04libgphoto22.5.27-1build1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu22.04libgphoto22.5.27-1build2Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu22.04libgphoto22.5.27-1ubuntu0.1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu22.04libgphoto22.5.27-1ubuntu0.2Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu24.04libgphoto22.5.30-1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu24.04libgphoto22.5.31-1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu24.04libgphoto22.5.31-2Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu24.04libgphoto22.5.31-2.1build1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu24.04libgphoto22.5.31-2.1build2Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu24.04libgphoto22.5.31-2.1ubuntu1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu24.04libgphoto22.5.31-2.1ubuntu1.1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu24.04libgphoto22.5.31-2.1ubuntu1.2Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.04libgphoto22.5.31-4build1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.04libgphoto22.5.32-1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.04libgphoto22.5.33-1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.04libgphoto22.5.33-1ubuntu1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.04libgphoto22.5.33-1ubuntu1.1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.04libgphoto22.5.33-1ubuntu1.2Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.10libgphoto22.5.33-1ubuntu1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.10libgphoto22.5.33-1ubuntu2Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntu26.10libgphoto22.5.33-1ubuntu2.1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntuprolibgphoto22.5.23-2Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntuprolibgphoto22.5.24-1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntuprolibgphoto22.5.25-0ubuntu0.1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntuprolibgphoto22.5.25-0ubuntu0.1+esm1Affected[USN-9476-1][UBUNTU-CVE-2026-138158]
Ubuntuprolibgphoto22.5.25-0ubuntu0.1+esm2UnknownConflicting source reports[USN-9476-1]
Ubuntuprolibgphoto22.5.25-0ubuntu0.1+esm2UnknownConflicting source reports[UBUNTU-CVE-2026-138158]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libgphoto2-6]Afectada

    Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.30-1 · amd64 · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

    • 2.5.30-1 · arm64 · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

  • [libgphoto2-dev]Afectada

    Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.30-1 · amd64 · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

    • 2.5.30-1 · arm64 · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

  • Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.30-1 · all · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

    • 2.5.30-1 · all · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

  • [libgphoto2-l10n]Afectada

    Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.30-1 · all · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

    • 2.5.30-1 · all · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

  • Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.30-1 · amd64 · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

    • 2.5.30-1 · arm64 · bookworm

      Afectada

      dsa · libgphoto2 · debian · bookworm; pypi · libgphoto2 · debian · 12

[Debian 13 (Trixie)]

  • [libgphoto2-6t64]Afectada

    Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.31-4 · amd64 · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

    • 2.5.31-4 · arm64 · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

  • [libgphoto2-dev]Afectada

    Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.31-4 · amd64 · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

    • 2.5.31-4 · arm64 · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

  • Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.31-4 · all · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

    • 2.5.31-4 · all · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

  • [libgphoto2-l10n]Afectada

    Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.31-4 · all · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

    • 2.5.31-4 · all · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

  • Paquete fuente: [libgphoto2]

    Detalles (2)
    • 2.5.31-4 · amd64 · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

    • 2.5.31-4 · arm64 · trixie

      Afectada

      pypi · libgphoto2 · debian · 13

Observado:

Referencias