pam_usb: deny_remote bypassed by compressed IPv6 addresses in pusb_tmux_has_remote_clients
- State
- Published
- Severity
- 7.4 High
- Published
- Nov 11, 2026
- Updated
- Nov 14, 2026
- Reserved
- Jul 20, 2026
Description
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.
| Product | Versions |
|---|---|
| pam_usb mcdope | >= 0.8.0, < 0.9.3 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.4 High | GitHub_M |
Weaknesses
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.