CVE-2026-64667 · Package
NO FIX YET · SEE WHAT TO DO
pam_usb is a PAM module that lets removable media unlock Linux logins. A missing string terminator in its command-line reader lets strstr scan past a heap buffer, which can crash the PAM process.
first public Jul 2, 2026 · 1 source
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
Systems that use pam_usb for PAM authentication, with DISPLAY set during login, are exposed when running a version before 0.9.3. The read fires for every process at auth time, so any host with pam_usb configured in PAM is in scope. Hosts that do not use pam_usb in their PAM stack can skip it.
Not affected if pam-usb-not-configured
Who cares linux, pam, pam_usb
pam_usb --version or your package manager's query, and compare against the fixed version below./etc/pam.d/ to confirm it is in use.0.9.3 or later.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.
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.