{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "0.9.1"
              }
            ],
            "source": "AFFECTED_FIELD"
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "e2f30b22cd0715fcde0fc62d6ee3e1ca6370b8a9"
            }
          ],
          "repo": "https://github.com/mcdope/pam_usb",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-24mw-m2vf-36vp"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-122",
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48065.json"
  },
  "details": "pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.1, src/conf.c allocates heap memory proportional to n_devices, a count derived from libxml2 XPath evaluation of the config file, without first enforcing an upper bound. On 32-bit targets (armv7l, i686 -- both listed in the project Makefile), the multiplication n_devices * sizeof(t_pusb_device) wraps around size_t, causing xmalloc() to receive a very small size. Because xmalloc() only calls abort() on NULL return, a small-but-non-NULL allocation is accepted, and subsequent array writes overflow the heap. This vulnerability is fixed in 0.9.1.",
  "id": "CVE-2026-48065",
  "modified": "2026-07-15T01:49:04.325203965Z",
  "published": "2026-05-27T19:58:36.447Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48065.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/mcdope/pam_usb/security/advisories/GHSA-24mw-m2vf-36vp"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-48065"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/mcdope/pam_usb/issues/352"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/mcdope/pam_usb/issues/55"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "pam_usb: Unchecked integer multiplication before xmalloc() in conf.c allows heap-based buffer overflow on 32-bit targets"
}