Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEstablish low-privilege local account
-
DeliveryTrigger concurrent GDM authentication dialogs
-
ExploitRace strtok() shared global pointer across threads
-
ExecutionCorrupt tmux or /proc environ token parsing
-
Persistdeny_remote=true returns incorrect local-session decision
-
ImpactBypass remote-session authentication policy
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V15 - Secure Coding and Architecture Concurrency control, locking
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires all of the following: (1) pam_usb must be configured with deny_remote=true - this is the non-default feature that activates the vulnerable strtok() parsing paths; without it, the vulnerable functions are never called; (2) the host PAM consumer must be a multi-threaded process that runs concurrent authentication sessions, specifically display managers such as GDM or GNOME Shell - single-threaded consumers like sudo and su cannot create the necessary thread race; (3) the attacker must have a local low-privileged account (PR:L per CVSS vector) sufficient to trigger authentication dialogs; (4) for the environment corruption path specifically, an active TMUX session with the TMUX environment variable set in the display manager's process environment is required. Exploitation is limited by the need for precise thread-race timing (AC:H), local-only access, and the specific multi-threaded display-manager deployment context. Systems using pam_usb only through single-threaded sudo/su flows, or with deny_remote=false, are not exploitable. |
| Impact | The CVSS 6.3 score reflects AV:L (local access required), AC:H (high attack complexity requiring precise thread race timing), PR:L (low-privilege authenticated user), UI:N, S:U, C:H/I:H/A:N. The local-only vector and high complexity substantially reduce opportunistic exploitability - an attacker must already have a foothold on the target system and reliably win a thread race in a multi-threaded display manager. No KEV listing exists and no EPSS score was provided in the input data, so exploitation probability cannot be quantified beyond CVSS signals. The C:H/I:H impact ratings reflect the potential for complete bypass of a security boundary (remote-session denial policy), which is the entire purpose of the affected feature - so while the raw CVSS is moderate, the security consequence of a successful exploit is a full authentication policy bypass. The environment corruption path is particularly concerning in long-lived GDM processes: a single exploit attempt that corrupts TMUX in the environment block degrades all future authentications for every user in that process session without requiring a repeated race win. Real-world exploitation is constrained to systems that have both pam_usb deployed with deny_remote=true and a multi-threaded display manager; most headless or server deployments would be unaffected. |
| Exploit ScenarioDerived | A local user with a standard unprivileged account on a workstation running GDM with pam_usb's deny_remote=true enabled initiates two near-simultaneous authentication attempts - for example by opening multiple GDM polkit authentication dialogs in rapid succession - timing them so that both threads enter the deny_remote strtok() parsing loop concurrently. Thread A's strtok() global pointer is overwritten by Thread B's call mid-tokenization, causing the tmux or /proc environ parse to produce a malformed result that misclassifies the remote session as local. No public exploit code is known, and reliable exploitation requires precise race-condition timing that may require multiple attempts. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Thread-safety flaws in pam_usb's deny_remote feature allow incorrect remote-session authentication decisions in display managers like GDM that run concurrent authentication threads. Three functions use the non-reentrant strtok(), whose single global state pointer can be overwritten mid-parse by a racing thread, corrupting tmux session data or /proc environ analysis used to classify sessions as local or remote. Compounding this, strtok() is called directly on the raw pointer returned by getenv(TMUX), inserting NUL bytes directly into the live process environment block and permanently corrupting the TMUX variable for all subsequent authentications in that long-lived process. An attacker with local low-privileged access on an affected system running GDM could exploit thread interleaving to cause deny_remote=true to pass a remote session as local. No public exploit identified at time of analysis; CVSS 6.3 with local, high-complexity attack vector.
RemediationAI
Upgrade to pam_usb 0.9.0, which resolves the race condition by replacing non-reentrant strtok() calls with thread-safe alternatives and eliminating the in-place mutation of the process environment block. The upstream fix is documented in commits https://github.com/mcdope/pam_usb/commit/94f1640a61d49dfaf38e782680a52f01d5bf8b51 and https://github.com/mcdope/pam_usb/commit/d003e551b794a9e3774ff4720830fb7aadaa48bd, and the full advisory is at https://github.com/mcdope/pam_usb/security/advisories/GHSA-j3xw-vc43-x7jg. If immediate patching is not possible, the most targeted compensating control is to set deny_remote=false in the pam_usb configuration, which disables the vulnerable code paths entirely - the trade-off is loss of remote-session rejection capability, meaning remote users would no longer be denied hardware authentication. A secondary option is restricting pam_usb to single-threaded PAM consumers (e.g., sudo, su) and removing it from GDM or other multi-threaded display managers until patching is complete; this eliminates the race condition by removing concurrency, at the cost of losing hardware authentication in graphical login sessions.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pam_usb is a Linux PAM (Pluggable Authentication Module) that provides hardware-based authentication via removable USB media. PAM modules are loaded directly into the host process address space rather than running as separate daemons, meaning they share memory and environment with the parent - a critical architectural detail here. The deny_remote feature examines tmux session metadata and /proc/[pid]/environ to determine whether an authentication request originates from a remote session. The root cause (CWE-362: Concurrent Execution Using Shared Resource with Improper Synchronization) is the use of strtok() - a C standard library function that stores its parsing cursor in a static global pointer - across three functions invoked by this feature. In display managers such as GDM that spawn multiple concurrent PAM authentication threads, two threads calling strtok() simultaneously will overwrite each other's in-progress parse state, producing corrupted tokens. The second distinct flaw involves getenv(TMUX) returning a direct pointer into the process environment block (not a copy); passing this to strtok() causes in-place NUL byte insertion into the environment, permanently destroying the TMUX variable for the lifetime of the display manager process. Affected versions are all pam_usb releases prior to 0.9.0. No CPE strings were supplied in the input data.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Primary rating from Vendor (github) · only source for this CVE.
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, pam_usb is a PAM module loaded into the host process (sudo, login, GDM, GNOME Shell). Display managers such as GDM run multiple concurrent authentication threads. Three functions used by the deny_remote feature called the non-reentrant strtok(), which stores state in a single global pointer. If two authentications race, one thread's strtok() call can overwrite the other's in-progress tokenisation pointer, causing incorrect parsing of the tmux session data or the /proc environ scan that backs the remote-session detection logic. Additionally, pusb_tmux_get_client_tty() passed the raw pointer returned by getenv(TMUX) directly to strtok(). getenv() returns a pointer into the live process environment block; strtok() inserts NUL bytes into that block, permanently corrupting the TMUX variable for subsequent code running in the same process. In long-lived display managers this affects all future authentications in that process. The combined effect can cause deny_remote=true to return an incorrect decision for a remote session, or an incorrect decision for a local session, depending on thread interleaving. This vulnerability is fixed in 0.9.0.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
Race conditions occur when multiple concurrent requests exploit the brief time gap between checking a condition and acting upon it (TOCTOU - Time of Check, Time of Use).
EUVD-2026-32655
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB