Read the docs

Heap out-of-bounds read in pam_usb command line scan

Priority LOW 20CWE-125Published · Updated

Key facts

Attack vector
Local
Privileges required
Low
User interaction
None
Attack complexity
Low
Impact type
—
Confidentiality · integrity · availability
Low · None · Low
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA.

Summary

pam_usb versions before 0.9.3 contain a heap out-of-bounds read in the pusb_get_tty_from_display_server function (CWE-125). The function reads a process command line into a fixed 4096-byte buffer without leaving room for a terminator, so later string searches scan past the end of the allocation. A local user with low privileges can trigger the read for processes that the function inspects during normal PAM authentication when DISPLAY is set, and a crafted heap layout can crash the host PAM process. The flaw can also leak a limited amount of information through the search results.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00162 5th percentileScored 2026-11-16
Fix Fixed pam_usb (mcdope): 0.9.3

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
mcdopepam_usbbefore 0.9.30.9.3Patch availableCNA
  • pam_usb Vendormcdope Affected before 0.9.3 Fixed in 0.9.3 Patch available CNA

Remediation

Upgrade pam_usb to version 0.9.3, which fixes the issue.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

  • Fix · CNA pam_usb (mcdope) Fixed in 0.9.3

Timeline

  1. 2026-11-11 Threatist record created from CVE-2026-64667
  2. 2026-11-12 CISA SSVC decision points changed

References

  • TI-2026-35505 pam_usb: PAM_RHOST check skipped when deny_remote=false allows XDMCP authentication bypass CVSS 3.1HIGH 8.1
  • TI-2026-32598 pam_usb: Symlink attacks on pad directory and pad files enable authentication bypass and root file corruption CVSS 3.1HIGH 7.9
  • TI-2026-32596 pam_usb: PINENTRY_FALLBACK_APP environment variable allows arbitrary command execution CVSS 3.1HIGH 7.8
  • TI-2026-32600 pam_usb: Command injection via $TMUX environment variable leads to RCE as root CVSS 3.1HIGH 8.8
  • TI-2026-32599 pam_usb: Shell injection via device UUID and username in pamusb-conf and pamusb-agent CVSS 3.1HIGH 8.2
  • TI-2026-89569 pam_usb deny_remote bypassed by compressed IPv6 addresses CVSS 3.1HIGH 7.4
See all 25 →

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences