{
  "cveId": "CVE-2026-40338",
  "url": "https://patchblox.com/security/cve/CVE-2026-40338",
  "summary": "CVE-2026-40338 is fixed in 6 products on 1 platform, first by libgphoto2-6 2.5.27-1ubuntu0.1, released April 17, 2026. It is not reported as exploited. Patch Radar priority: Routine.",
  "title": "libgphoto2-6: libgphoto2 is a camera access and control library",
  "description": "libgphoto2 is a camera access and control library. Versions up to and including 2.5.33 have an out-of-bounds read in the PTP_DPFF_Enumeration case of \u0060ptp_unpack_Sony_DPD()\u0060 in \u0060camlibs/ptp2/ptp-pack.c\u0060 (line 856). The function reads a 2-byte enumeration count N via \u0060dtoh16o(data, *poffset)\u0060 without verifying that 2 bytes remain in the buffer. The standard \u0060ptp_unpack_DPD()\u0060 at line 704 has this exact check, confirming the Sony variant omitted it by oversight. Commit 3b9f9696be76ae51dca983d9dd8ce586a2561845 fixes the issue.",
  "published": "2026-04-17T17:16:00Z",
  "severity": "Medium",
  "cvss": 5.2,
  "cvssVector": "CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:L",
  "epss": 0.00198,
  "epssPercentile": 0.09545,
  "priority": "Routine",
  "priorityTier": 4,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "libgphoto2",
      "release": "Debian 14",
      "fixedVersion": "2.5.34-1",
      "fix": "DEBIAN-CVE-2026-40338",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2026-40338",
      "released": "2026-04-18T00:16:37Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-6",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.5.27-1ubuntu0.1",
      "fix": "libgphoto2-6 2.5.27-1ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libgphoto2-6-2.5.27-1ubuntu0.1",
      "released": "2026-04-17T17:16:00Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-6t64",
      "release": "Ubuntu 24.04.5 LTS (noble)",
      "fixedVersion": "2.5.31-2.1ubuntu1.1",
      "fix": "libgphoto2-6t64 2.5.31-2.1ubuntu1.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-noble-libgphoto2-6t64-2.5.31-2.1ubuntu1.1",
      "released": "2026-04-17T17:16:00Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-6t64",
      "release": "Ubuntu 26.04.1 LTS (resolute)",
      "fixedVersion": "2.5.33-1ubuntu1.1",
      "fix": "libgphoto2-6t64 2.5.33-1ubuntu1.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-resolute-libgphoto2-6t64-2.5.33-1ubuntu1.1",
      "released": "2026-04-17T17:16:00Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-l10n",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.5.27-1ubuntu0.1",
      "fix": "libgphoto2-l10n 2.5.27-1ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libgphoto2-l10n-2.5.27-1ubuntu0.1",
      "released": "2026-04-17T17:16:00Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-l10n",
      "release": "Ubuntu 24.04.5 LTS (noble)",
      "fixedVersion": "2.5.31-2.1ubuntu1.1",
      "fix": "libgphoto2-l10n 2.5.31-2.1ubuntu1.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-noble-libgphoto2-l10n-2.5.31-2.1ubuntu1.1",
      "released": "2026-04-17T17:16:00Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-l10n",
      "release": "Ubuntu 26.04.1 LTS (resolute)",
      "fixedVersion": "2.5.33-1ubuntu1.1",
      "fix": "libgphoto2-l10n 2.5.33-1ubuntu1.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-resolute-libgphoto2-l10n-2.5.33-1ubuntu1.1",
      "released": "2026-04-17T17:16:00Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-port12",
      "release": "Ubuntu 22.04.1 LTS (jammy)",
      "fixedVersion": "2.5.27-1ubuntu0.1",
      "fix": "libgphoto2-port12 2.5.27-1ubuntu0.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-jammy-libgphoto2-port12-2.5.27-1ubuntu0.1",
      "released": "2026-04-17T17:16:00Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-port12t64",
      "release": "Ubuntu 24.04.5 LTS (noble)",
      "fixedVersion": "2.5.31-2.1ubuntu1.1",
      "fix": "libgphoto2-port12t64 2.5.31-2.1ubuntu1.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-noble-libgphoto2-port12t64-2.5.31-2.1ubuntu1.1",
      "released": "2026-04-17T17:16:00Z"
    },
    {
      "platform": "linux",
      "product": "libgphoto2-port12t64",
      "release": "Ubuntu 26.04.1 LTS (resolute)",
      "fixedVersion": "2.5.33-1ubuntu1.1",
      "fix": "libgphoto2-port12t64 2.5.33-1ubuntu1.1",
      "url": "https://patchblox.com/security/fix/linux/ubuntu-resolute-libgphoto2-port12t64-2.5.33-1ubuntu1.1",
      "released": "2026-04-17T17:16:00Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T06:59:42Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}