# CVE-2026-64667: pam_usb: Heap out-of-bounds read in pusb_get_tty_from_display_server cmdline scan

- Severity: Medium 4.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-11-11T03:51:59.164Z
- Modified: 2026-11-12T20:18:49.430Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- mcdope pam_usb: < 0.9.3

## References

- <https://github.com/mcdope/pam_usb/security/advisories/GHSA-gc6f-5hpq-ghxh>
- <https://github.com/mcdope/pam_usb/issues/411>
- <https://github.com/mcdope/pam_usb/pull/426>
- <https://github.com/mcdope/pam_usb/commit/d0a2e716241304cdb069adfaf54d2ede629d57fa>
- <https://github.com/mcdope/pam_usb/releases/tag/0.9.3>

## Sources

- CVE List: [CVE-2026-64667](https://www.cve.org/CVERecord?id=CVE-2026-64667), CVE Terms of Use, modified 2026-11-12
- NVD: [CVE-2026-64667](https://nvd.nist.gov/vuln/detail/CVE-2026-64667), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-64667 · Whole record: https://cve.day/CVE-2026-64667.json · Rebuilt by cve.day 2026-11-25T22:59:50.317Z
