Skip to main content

pam_usb CVE-2026-48986

| EUVDEUVD-2026-37923 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-06-18 GitHub_M
4.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain low-privilege local shell
  2. Delivery
    Initiate authentication via sudo/sshd/login
  3. Exploit
    Time ancestor process exit during auth window
  4. Execution
    /proc/<pid>/stat becomes unreadable mid-walk
  5. Persist
    pam_usb loop stalls on stale PID
  6. Impact
    Authentication 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pam_usb < 0.9.2

Affected Packages

euvd pam_usb fix: 0.9.2

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

Vendor (GitHub_M) PRIMARY 4.7 MEDIUM
AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 4.7 MEDIUM

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).

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

1
Patch available
Jun 18, 2026 - 19:01 EUVD

DescriptionCVE.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

EPSS Score
0.1%
Top 99% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

24
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +24
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

CVE-2026-48064 HIGH
8.1 May 27

Authentication bypass in pam_usb before 0.9.1 allows remote unauthenticated attackers to reach the USB hardware-authenti

CVE-2026-64669 HIGH
7.4 Nov 11

pam_usb versions 0.8.0 through 0.9.2 fail to recognize compressed-notation IPv6 addresses when evaluating the optional d

CVE-2026-64668 HIGH
7.4 Nov 11

The deny_remote safeguard in pam_usb fails open on link-local IPv6 sessions, causing a remote login to be classified as

CVE-2026-64666 HIGH
7.1 Nov 11

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

CVE-2026-47272 HIGH
7.1 May 27

Authentication bypass in pam_usb prior to 0.9.0 lets a local user defeat the USB hardware-authentication factor by delet

CVE-2026-48981 MEDIUM
6.7 Jun 18

XXE injection in pam_usb prior to 0.9.2 enables an attacker with write access to the root-owned configuration file to tr

CVE-2026-48065 MEDIUM
6.7 May 27

Heap buffer overflow in pam_usb prior to 0.9.1 allows a local attacker with high privileges to corrupt heap memory on 32

CVE-2026-47273 MEDIUM
6.5 May 27

XPath injection in pam_usb prior to 0.9.0 allows unauthenticated remote attackers to manipulate device-verification quer

CVE-2026-48980 MEDIUM
6.3 Jun 18

Environment variable injection in pam_usb prior to version 0.9.2 allows a local authenticated user to bypass hardware US

CVE-2026-47274 MEDIUM
6.3 May 27

PATH hijacking in pam_usb helper tools prior to version 0.9.0 allows a local low-privileged attacker who can manipulate

CVE-2026-48982 MEDIUM
5.8 Jun 18

Non-atomic one-time pad file creation in pam_usb prior to 0.9.2 exposes the core replay-prevention mechanism to a local

CVE-2026-48983 MEDIUM
5.8 Jun 18

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

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy