Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain low-privilege local shell
-
DeliveryInitiate authentication via sudo/sshd/login
-
ExploitTime ancestor process exit during auth window
-
Execution/proc/<pid>/stat becomes unreadable mid-walk
-
Persistpam_usb loop stalls on stale PID
-
ImpactAuthentication process hangs indefinitely until forcibly killed
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated local attacker with at minimum low-privilege shell access (PR:L per CVSS) on a Linux system where pam_usb 0.9.1 or earlier is active in the PAM stack for at least one service (sudo, sshd, or login). The specific triggering condition is a race: an ancestor process in the authenticating process's lineage must exit and have its /proc/<pid>/stat entry become unavailable during the precise window of pam_usb's process-tree traversal in pusb_local_login(). This is an AC:H (high complexity) race condition - not a deterministic, on-demand exploit. Exploitation is further limited by: (1) requiring local access, so remote attackers must first compromise a local account; (2) the narrow and non-deterministic timing window for the race; (3) impact is confined to hanging a single authentication session per attempt rather than crashing or compromising the underlying system. There is no confidentiality or integrity impact under any conditions. |
| Impact | The CVSS 3.1 vector (AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately captures the threat profile: local access only, high attack complexity due to the race condition, low-privilege attacker, and impact strictly limited to availability. The High complexity rating (AC:H) is significant - exploitation depends on timing an ancestor process exit to coincide precisely with pam_usb's process-tree walk, which is non-deterministic and difficult to reliably reproduce. The High availability impact is credible because a hung sshd or sudo session blocks that authentication channel until forcibly killed. No EPSS data was provided in the input, so exploitation probability cannot be quantified. KEV status is absent and no public POC has been identified, indicating no confirmed active exploitation. The overall risk is moderate: the attack surface is constrained to local low-privileged users on systems running pam_usb, but the availability impact on authentication infrastructure (particularly sshd) warrants prompt patching. There is no confidentiality or integrity exposure. |
| Exploit ScenarioDerived | A low-privileged local attacker obtains a shell on a system running pam_usb 0.9.1 and initiates repeated sudo invocations, timing the exit of an intermediate ancestor process (such as a shell or terminal multiplexer session) to coincide with pam_usb's /proc traversal during the authentication phase. If /proc/<pid>/stat of the exiting ancestor becomes unreadable mid-walk, usb_get_process_parent_id() returns without updating *ppid, and pusb_local_login()'s loop spins on the same stale PID indefinitely. The targeted sudo or sshd session hangs until an administrator forcibly kills it, denying authentication for that session. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jun 18, 2026
Infinite loop denial-of-service in pam_usb 0.9.1 and earlier can permanently hang authentication processes such as sudo, sshd, or login on Linux systems using USB hardware authentication. The flaw is in usb_get_process_parent_id(), which fails to initialize *ppid on failure; pusb_local_login() reuses the same variable as both input and output in a process-tree traversal loop, so if /proc/<pid>/stat becomes unreadable mid-authentication (e.g., an ancestor process exits during the auth window), the PID is never advanced and the loop never terminates. No public exploit has been identified and KEV listing is absent; the vendor-released patch is version 0.9.2, which is strongly recommended given the criticality of the affected authentication stack components.
RemediationAI
Vendor-released patch: 0.9.2. Upgrade pam_usb to version 0.9.2 immediately; the vendor explicitly describes this as a security hardening release and strongly recommends upgrading. Release artifacts and notes are available at https://github.com/mcdope/pam_usb/releases/tag/0.9.2, and the advisory is at https://github.com/mcdope/pam_usb/security/advisories/GHSA-h28h-9hc3-v595. If an immediate upgrade is not feasible, a compensating control is to temporarily remove pam_usb from the PAM stack for critical services (edit /etc/pam.d/sudo, /etc/pam.d/sshd, and /etc/pam.d/login) - note this completely disables USB hardware authentication, removing the second factor. An additional mitigation is to configure PAM's auth timeout or deploy a process watchdog that forcibly terminates hung authentication sessions, limiting the DoS impact to individual sessions rather than an indefinite hang. Neither workaround addresses the root cause.
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 Pluggable Authentication Module (PAM) that gates authentication on the presence of a specific USB removable media device, providing hardware-based two-factor authentication for services integrated with PAM such as sudo, sshd, and login. The root cause is CWE-835 (Loop with Unreachable Exit Condition): the loop termination criterion - reaching the process-tree root - can never be satisfied because the variable tracking the current PID is never updated when /proc/<pid>/stat is unreadable. Specifically, usb_get_process_parent_id() returns an error code without writing to *ppid on failure, so pusb_local_login()'s while loop - which feeds the returned ppid back as the next pid to walk - stalls on the same stale PID indefinitely. The fix in 0.9.2 adds explicit cycle detection to the process-tree walk (#394, issue #388).
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:L/UI:N/S:U/C:N/I:N/A:H
Local-only race condition with timing dependency justifies AV:L and AC:H; existing unprivileged shell required (PR:L); impact is purely availability of the auth process (A:H, C:N, I:N).
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
1DescriptionCVE.org
pam_usb provides hardware authentication for Linux using removable media. In pam_usb 0.9.1 and earlier, usb_get_process_parent_id() can cause an infinite loop DoS because it does not initialize *ppid on failure. In pusb_local_login(), the same variable is reused as input and output in a process-tree while loop; if /proc/<pid>/stat cannot be read (for example, when an ancestor process exits during authentication), the PID is not updated and the loop does not terminate. This hangs the authenticating process (such as sudo, sshd, or login) until it is forcibly terminated. This issue has been fixed in version 0.9.2.
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
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-37923
NVD
CVE.org
EPSS
Vulnrichment
GitHub
VulDB
Exploit-DB