Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain local or network access to target system
-
DeliverySpawn concurrent authentication requests to pam_usb PAM stack
-
ExploitRace concurrent threads to overwrite static log pointer
-
ExecutionTrigger dereference of dangling stack-frame pointer
-
ImpactCrash authentication service (DoS)
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 local access to the target system (AV:L) and the ability to trigger multiple concurrent PAM authentication invocations, which is possible without elevated privileges (PR:N) but demands precise thread-level timing (AC:H). The specific condition is that pam_usb must be active in the PAM stack of a service that invokes PAM from multiple threads simultaneously - such as sshd with concurrent connection handling enabled, polkit, or a display manager. The race window exists in src/log.c's static pointer assignment on every PAM call. Single-threaded or serialized PAM consumers are not exploitable regardless of pam_usb version. Authentication to the system itself is not a prerequisite - the attacker only needs to be able to initiate authentication attempts (e.g., attempting SSH logins). The Availability:High impact is limited to the authenticating process or service, not the entire host; Integrity impact is Low and Confidentiality impact is None per CVSS. |
| Impact | The CVSS 5.7 score with AV:L/AC:H/PR:N/UI:N/S:U signals a moderate, locally-exploitable vulnerability with high attack complexity, consistent with a race condition that requires precise thread timing. Confidentiality impact is None, Integrity impact is Low, and Availability impact is High - the dominant realistic outcome is a crash of the authenticating service or process. EPSS data was not provided in the source intelligence, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV and no POC has been identified, suggesting opportunistic mass exploitation is unlikely. However, the AV:L/PR:N combination means any local user (including unprivileged ones) on a multi-threaded system could attempt to race PAM authentication calls, which is plausible in shared Linux environments. The AC:H rating appropriately captures the timing sensitivity. The most credible risk scenario is denial-of-service against authentication services rather than privilege escalation, as Integrity impact is only Low and Confidentiality impact is None. The 'Information Disclosure' tag in the source data is not directly reconcilable with the CVSS C:N rating - this may indicate the advisory author considered the stale pointer readable as an information disclosure vector, but this is not confirmed by CVSS. |
| Exploit ScenarioDerived | A local unprivileged user on a system running sshd (or another multi-threaded PAM consumer) spawns multiple simultaneous authentication attempts to force concurrent pam_usb invocations in separate threads. The attacker times the requests so that one thread's log.c static pointer is overwritten with a second thread's stack-local variable address just as the first thread's stack frame is destroyed, causing the logging subsystem to dereference a dangling pointer. The likely outcome is a crash of the authentication service or process, resulting in a denial of service for other users attempting to log in. No POC has been identified at time of analysis. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 27, 2026
Concurrent PAM invocations in pam_usb prior to 0.9.1 expose a process-wide static pointer race condition in src/log.c, where each PAM call overwrites a shared static pointer with the address of a stack-local variable. When multiple threads invoke the PAM stack simultaneously - a normal condition in multi-threaded Linux services such as SSH daemons or display managers - one thread's logging pointer can reference another thread's already-deallocated stack frame, causing availability loss (crash/hang) or limited integrity corruption. No public exploit has been identified at time of analysis, and this is not listed in CISA KEV.
RemediationAI
Upgrade pam_usb to version 0.9.1, which resolves the static pointer misuse in src/log.c. This is the vendor-released patch per the GitHub Security Advisory GHSA-qg76-57wq-mpv6 at https://github.com/mcdope/pam_usb/security/advisories/GHSA-qg76-57wq-mpv6. If immediate upgrade is not possible, a compensating control is to restrict pam_usb to single-threaded authentication contexts only - for example, disabling concurrent session handling in sshd (setting MaxStartups 1) to eliminate the race window, though this introduces a denial-of-service risk by serializing all SSH authentication. Alternatively, removing pam_usb from the PAM stack of services that invoke PAM concurrently (e.g., commenting out the pam_usb line in /etc/pam.d/sshd) eliminates exposure at the cost of disabling hardware USB authentication for those services. Upgrade to 0.9.1 is the only complete fix.
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 (CPE: cpe:2.3:a:mcdope:pam_usb:*:*:*:*:*:*:*:*) is a Linux PAM module that enforces hardware two-factor authentication using removable USB media. The PAM framework mandates that modules be re-entrant and thread-safe, as calling applications such as sshd or polkit may invoke the PAM stack concurrently from multiple threads. The root cause (CWE-362: Concurrent Execution Using Shared Resource with Improper Synchronization) is located in src/log.c, which holds a single process-wide static pointer. On every PAM invocation, this pointer is assigned the address of a variable residing on that invocation's call stack. Because the stack frame is destroyed when the function returns, any concurrent thread that dereferences the static pointer after the originating thread has returned is reading a dangling pointer into freed stack memory. The CVSS vector AV:L/AC:H reflects that exploitation requires local system access and precise timing to trigger the race window.
Know when Pam Usb gets its next vulnerability
- 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:N/UI:N/S:U/C:N/I:L/A:H
Primary rating from Vendor (GitHub_M) · only source for this CVE.
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.1, src/log.c contains a process-wide static pointer that is written on every PAM invocation with the address of a stack-local variable. This violates the PAM re-entrancy requirement and creates a data race when the PAM stack is invoked concurrently from multiple threads. This vulnerability is fixed in 0.9.1.
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).
Authentication bypass in pam_usb before 0.9.1 allows remote unauthenticated attackers to reach the USB hardware-authenti
pam_usb versions 0.8.0 through 0.9.2 fail to recognize compressed-notation IPv6 addresses when evaluating the optional d
The deny_remote safeguard in pam_usb fails open on link-local IPv6 sessions, causing a remote login to be classified as
pam_usb through 0.9.2 can be pushed past its explicit XRDP deny rule by a local user who simply unsets the XRDP_SESSION
Authentication bypass in pam_usb prior to 0.9.0 lets a local user defeat the USB hardware-authentication factor by delet
XXE injection in pam_usb prior to 0.9.2 enables an attacker with write access to the root-owned configuration file to tr
Heap buffer overflow in pam_usb prior to 0.9.1 allows a local attacker with high privileges to corrupt heap memory on 32
XPath injection in pam_usb prior to 0.9.0 allows unauthenticated remote attackers to manipulate device-verification quer
Environment variable injection in pam_usb prior to version 0.9.2 allows a local authenticated user to bypass hardware US
PATH hijacking in pam_usb helper tools prior to version 0.9.0 allows a local low-privileged attacker who can manipulate
Non-atomic one-time pad file creation in pam_usb prior to 0.9.2 exposes the core replay-prevention mechanism to a local
Symlink race condition in pam_usb prior to 0.9.2 allows a local attacker to redirect one-time pad files to an attacker-c
EUVD-2026-32648
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB