CVE-2026-48065

Source
https://cve.org/CVERecord?id=CVE-2026-48065
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48065.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-48065
Aliases
  • GHSA-24mw-m2vf-36vp
Published
2026-05-27T19:58:36.447Z
Modified
2026-07-18T03:58:35.689401Z
Severity
  • 6.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
pam_usb: Unchecked integer multiplication before xmalloc() in conf.c allows heap-based buffer overflow on 32-bit targets
Details

pamusb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.1, src/conf.c allocates heap memory proportional to ndevices, 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 ndevices * sizeof(tpusbdevice) wraps around sizet, 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.

Database specific
{
    "cwe_ids": [
        "CWE-122",
        "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48065.json",
    "cna_assigner": "GitHub_M"
}
References

Affected packages

Git / github.com/mcdope/pam_usb

Affected ranges

Type
GIT
Repo
https://github.com/mcdope/pam_usb
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "0.9.1"
        }
    ],
    "source": "AFFECTED_FIELD"
}

Affected versions

0.*
0.5.0
0.7.1
0.7.2
0.7.3
0.8.3
0.8.4
0.8.7
0.9.0
v0.*
v0.7.0
v0.8.0

Database specific

vanir_signatures
[
    {
        "source": "https://github.com/mcdope/pam_usb/commit/e2f30b22cd0715fcde0fc62d6ee3e1ca6370b8a9",
        "signature_version": "v1",
        "signature_type": "Line",
        "digest": {
            "line_hashes": [
                "32897324108646938673138056869665931337"
            ],
            "threshold": 0.9
        },
        "deprecated": false,
        "id": "CVE-2026-48065-b792a2ae",
        "target": {
            "file": "src/version.h"
        }
    }
]
vanir_signatures_modified
"2026-07-18T03:58:35Z"
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-48065.json"