Mcdope pam_usb
pam_usb: deny_remote bypassed by compressed IPv6 addresses in pusb_tmux_has_remote_clients
pam_usb provides hardware authentication for Linux using removable media. From version 0.8.0 to before version 0.9.3, the deny_remote feature in pam_usb uses /usr/bin/w -i to detect whether the authenticating user has an active remote tmux session. In pusb_tmux_has_remote_clients() (src/tmux.c), the IPv6 detection regex required exactly four explicit colon-separated groups of 1-4 hex digits (e.g. 2001:0db8:85a3:0000). Any IPv6 address in compressed notation — including loopback (::1), link-local (fe80::1), and global unicast addresses (2001:db8::1) — did not match this pattern. As a result the remote-client check silently returned "no remote clients" even when a remote tmux client was connected from such an address. This issue has been patched in version 0.9.3.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0.8.0, < 0.9.3
Fixed in 0.9.3
Mitigation
Upgrade pam_usb to 0.9.3 or later.
References
- Vendor advisory github.com/mcdope/pam_usb/security/advisories/…
- Patch github.com/mcdope/pam_usb/pull/423
- Patch github.com/mcdope/pam_usb/commit/a62513f3da871…
1 more
- Release notes github.com/mcdope/pam_usb/releases/tag/0.9.3
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.