CVE-2026-48065
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedpam_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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidencepam_usb versions before 0.9.1 have an integer overflow in src/conf.c where n_devices from XML config is multiplied by sizeof(t_pusb_device) without bounds checking. On 32-bit systems (armv7l, i686), this multiplication wraps around size_t, causing xmalloc() to allocate a much smaller buffer than intended. The subsequent array writes then overflow the heap.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify if pam_usb is installedRun 'dpkg -l pam-usb' or 'rpm -q pam-usb' or check for /lib/security/pam_usb.so or /lib64/security/pam_usb.soAffected if pam_usb package or binary is present on the system
-
Determine installed pam_usb versionRun 'dpkg -l pam-usb | grep pam-usb' or 'rpm -q --info pam-usb' or check /usr/share/doc/pam-usb/ for version fileAffected if Version is below 0.9.1 (e.g., 0.9.0, 0.8.x, etc.)
-
Identify system architectureRun 'uname -m' or 'arch' commandAffected if Output shows 32-bit architecture such as i686, i386, or armv7l (64-bit systems like x86_64 or aarch64 are not affected by this overflow)
-
Locate pam_usb XML configuration fileCheck /etc/pam_usb.conf or /etc/pam_usb/*.xml, or search for XML files referenced in pam_usb documentationAffected if An XML configuration file exists and contains <device> entries defining multiple authentication devices (the n_devices value read from this file triggers the overflow)
-
Verify pam_usb module is loaded or configured for authenticationCheck PAM configuration files in /etc/pam.d/ for 'pam_usb.so' entries (e.g., grep -r pam_usb /etc/pam.d/)Affected if pam_usb is configured as an authentication module in any PAM service file
A system is affected if pam_usb version is below 0.9.1 AND the system is 32-bit (i686/armv7l) AND pam_usb is configured with an XML config file containing device entries.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUpgrade pam_usb to version 0.9.1 or later, which enforces an upper bound on n_devices before allocation. Prior to upgrading, restrict pam_usb deployment to 64-bit systems if possible.
0.9.1
- 1. Identify the current installed version of pam_usb by checking the package manager or running `dpkg -l | grep pam-usb` or `rpm -qa | grep pam-usb`
- 2. Download pam_usb version 0.9.1 from the official GitHub repository (github.com/pam-usb) or from your distribution's package repository
- 3. If building from source: clone the repository, checkout tag v0.9.1, then run `./configure`, `make`, and `make install` as root
- 4. If using a package manager: run `apt-get install pam-usb` (Debian/Ubuntu) or `yum install pam-usb` (RHEL/CentOS) to install the updated package
- 5. Verify the installation was successful by checking the version: `pamusb-config --version` or checking the binary
- 6. Review the configuration file /etc/pamusb.conf to ensure settings are intact after upgrade
- 7. Test the authentication functionality to confirm pam_usb is working correctly
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing3.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,224.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-48065 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-48065 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data