CVE-2026-64667 Details
Description
pam_usb provides hardware authentication for Linux using removable media. Prior to version 0.9.3, src/local.c (pusb_get_tty_from_display_server) allocates a 4096-byte cmdline buffer, reads up to 4096 bytes from /proc//cmdline, then replaces every NUL separator with a space. When read(2) returns exactly 4096 bytes for any process the function inspects, the buffer ends without a terminator and the subsequent strstr() calls scan past the allocation boundary. The function is invoked during normal PAM authentication when DISPLAY is set, so the read fires for every process at auth time. Consequences are bounded: strstr output is a Boolean substring match (limited info-disclosure surface) but a hostile heap layout can produce a SIGSEGV that terminates the host PAM process. This issue has been patched in version 0.9.3.
A heap-based buffer overflow vulnerability has been identified in pam_usb versions prior to 0.9.3. The issue arises in the function pusb_get_tty_from_display_server within src/local.c. Here, a 4096-byte buffer is allocated to read process command line data from /proc//cmdline. The function then replaces NUL separators with spaces, but if read(2) returns exactly 4096 bytes, the buffer lacks a proper terminator. This flaw allows subsequent strstr() calls to read past the allocated memory, potentially leading to a segmentation fault that crashes the PAM process. This vulnerability is triggered during normal PAM authentication when the DISPLAY environment variable is set, affecting all processes at that time.
Users can upgrade to pam_usb version 0.9.3 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 11, 2026CISA-ADP
Assessed Nov 12, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mcdope/pam_usb/commit/d0a2e716241304cdb069adfaf54d2ede629d57fa | [email protected] | Source CodeVendor |
| https://github.com/mcdope/pam_usb/issues/411 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/mcdope/pam_usb/pull/426 | [email protected] | Source CodeVendor |
| https://github.com/mcdope/pam_usb/releases/tag/0.9.3 | [email protected] | Release NotesVendor |
| https://github.com/mcdope/pam_usb/security/advisories/GHSA-gc6f-5hpq-ghxh | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-125 | Out-of-bounds Read | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mcdope pam_usb | <= 0.9.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 12, 2026 | CVE Modified | CISA-ADP |
| Nov 11, 2026 | New CVE Received | [email protected] |
Volerion