pam_usb: Heap out-of-bounds read in pusb_get_tty_from_display_server cmdline scan
CVE-2026-64667Published 11 Nov 2026, 03:51 UTC
Real-world risk
1.3/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
4.4
scored by the vendor (CNA), CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from GitHub_M)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| pam_usbNiche | < 0.9.3 | 0.9.3 |
What to do
Update to a fixed version: 0.9.3.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | LowA real low-privileged account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.2% chance of exploitation in 30 days (percentile 9), as of 2026-12-05.
The arithmetic
- Prerequisites multiplied together0.500
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.5 × threat 0.851.275
- Rounded to one decimal between 0.1 and 101.3
Exploitation and evidence timeline
- 11 Nov 2026 Published
- 3 Dec 2026 Risk 1.3 (cvss fallback)
Weakness
CWE-125
References
- https://github.com/mcdope/pam_usb/security/advisories/GHSA-gc6f-5hpq-ghxhvendor-advisory
- https://github.com/mcdope/pam_usb/issues/411misc
- https://github.com/mcdope/pam_usb/pull/426misc
- https://github.com/mcdope/pam_usb/commit/d0a2e716241304cdb069adfaf54d2ede629d57famisc
- https://github.com/mcdope/pam_usb/releases/tag/0.9.3misc
- CVE-2026-64667 on CVE.org