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

Published Nov 11, 2026
·
Updated

pamusb provides hardware authentication for Linux using removable media. Prior to version 0.9.3, src/local.c (pusbgetttyfromdisplayserver) 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.

Affected Software

1 affected component
pam_usb pam_usb<0.9.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pam_usb to a version that resolves this vulnerability.

    Fixed in 0.9.3

Event History

Nov 11, 2026
CVE Published
via MITRE·03:51 AM
Data Sourced
via MITRE·03:51 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·05:19 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems using pam_usb versions before 0.9.3 are affected when normal PAM authentication occurs with the DISPLAY environment variable set. The vulnerable function inspects process command lines during that authentication flow.

2

What conditions are needed to trigger the out-of-bounds read?

At least one process inspected by the function must have a /proc/<pid>/cmdline value for which read(2) returns exactly 4096 bytes. The authentication must also run with DISPLAY set.

3

What is the practical impact of successful exploitation?

The out-of-bounds strstr() scan has a limited information-disclosure surface because its result is only a Boolean substring match. With a hostile heap layout, it can also cause a SIGSEGV that terminates the host PAM process.

4

How can I remediate the issue?

Upgrade pam_usb to version 0.9.3, which includes the patch.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203