Skip to main content

pam_usb CVE-2026-48066

| EUVDEUVD-2026-32648 MEDIUM
Race Condition (CWE-362)
2026-05-27 GitHub_M
5.7
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Gain local or network access to target system
  2. Delivery
    Spawn concurrent authentication requests to pam_usb PAM stack
  3. Exploit
    Race concurrent threads to overwrite static log pointer
  4. Execution
    Trigger dereference of dangling stack-frame pointer
  5. Impact
    Crash 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.

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

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

Alert me

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

pam_usb < 0.9.1

Affected Packages

euvd pam_usb fix: 0.9.1

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

Vendor (GitHub_M) PRIMARY 5.7 MEDIUM
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

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

Lifecycle Timeline

2
Patch available
May 27, 2026 - 22:04 EUVD
CVE Published
May 27, 2026 - 19:57 nvd
MEDIUM 5.7

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

EPSS Score
0.0%
Top 96% exploitable
Data Quality
6 sources
Confidence: High

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.0%
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

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

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

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