Skip to main content

pam_usb EUVDEUVD-2026-37924

| CVE-2026-48985 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-06-18 GitHub_M
5.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Recon
    Gain low-privilege local account access
  2. Delivery
    Trigger authentication against pam_usb-protected service
  3. Exploit
    pusb_is_loginctl_local() calls loginctl via popen()
  4. Install
    loginctl returns empty Remote field (newline only)
  5. C2
    strtok_r() returns NULL, strcmp() dereferences it
  6. Execute
    SIGSEGV crashes PAM module
  7. Impact
    Authentication denied for all users of affected service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V16 - Security Logging and Error Handling Null pointer safety, defensive checks
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

pam_usb must be installed and active in the PAM stack for at least one service (e.g., /etc/pam.d/sudo or /etc/pam.d/login). The attacker must have local, low-privilege access to the system sufficient to trigger an authentication attempt against a pam_usb-protected service (PR:L per CVSS vector). The crash is triggered specifically when loginctl returns a Remote session field containing only a newline character - a condition dependent on the session environment and loginctl behavior, not something the attacker fully controls. Exploitation impact is severe only when pam_usb is configured with the required PAM control flag; systems using optional or sufficient control flags experience the crash but authentication falls through to other modules. The local attack vector (AV:L) means remote unauthenticated attackers cannot directly trigger this crash.

Impact

The CVSS 3.1 vector AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (score 5.5) accurately reflects the threat profile: this is a local, low-complexity denial of service requiring only low-privilege access. The availability impact is rated High because crashing pam_usb can block all authentication through the affected PAM service, not just the triggering user's session. No EPSS data was provided in the source intelligence, so exploitation probability cannot be quantified. The vulnerability is not listed in CISA KEV, and no public exploit code has been identified. Real-world risk is moderate but context-dependent: on systems where pam_usb is the only or required PAM module for sudo or login (control flag set to required), a crash constitutes a lockout scenario. Systems with pam_usb marked optional are largely shielded from availability impact. The local attack vector substantially limits the attack surface compared to network-exploitable vulnerabilities. The 0.9.2 release notes confirm this is one of 12 findings from an active security audit, suggesting the codebase has systemic hardening needs beyond this single CVE.

Exploit ScenarioDerived

A low-privilege local user initiates an authentication attempt through a pam_usb-protected service such as sudo. During the session locality check, loginctl happens to return a Remote field with only a newline - a condition that can arise in certain display manager or remote session configurations. The NULL dereference in pusb_is_loginctl_local() crashes the PAM module with SIGSEGV, terminating the authentication process. If pam_usb is configured as a required module in the PAM stack, all subsequent authentication attempts through that service (including by other users) fail until the service is restarted.

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

NULL pointer dereference in pam_usb 0.9.1 and below crashes PAM-integrated authentication services (sudo, login) when loginctl returns an empty Remote field during session locality checks. The crash terminates the PAM module with SIGSEGV, and depending on PAM stack control flags (required vs. optional), can deny authentication to all users of the affected service - a local denial of service with potentially severe impact on system accessibility. No active exploitation confirmed (not in CISA KEV); vendor-released patch available in version 0.9.2, which also addresses 11 additional security findings discovered during an ongoing audit.

RemediationAI

Upgrade to pam_usb version 0.9.2, which fixes this NULL dereference (commit #393 in the release) alongside 11 other security findings including XXE, TOCTOU races, symlink attacks, and environment variable injection. The release is available at https://github.com/mcdope/pam_usb/releases/tag/0.9.2 and the vendor strongly recommends upgrading. If immediate upgrade is not feasible, set the pam_usb PAM stack control flag to optional rather than required for affected services (sudo, login); this prevents a crash in the module from blocking the entire authentication chain, though it reduces the security guarantee that USB media presence is enforced. Note this workaround changes the security posture: authentication will proceed even if pam_usb fails entirely, defeating the hardware authentication purpose. A more conservative workaround is to temporarily remove pam_usb from the PAM stack for critical services until patching is complete, accepting loss of USB hardware authentication as a trade-off against availability risk.

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 is a Linux PAM (Pluggable Authentication Modules) library that enables hardware-based authentication using removable USB media, identified by CPE cpe:2.3:a:mcdope:pam_usb:*:*:*:*:*:*:*:*. The vulnerable function pusb_is_loginctl_local() invokes loginctl via popen() to determine whether a session is local or remote. The root cause (CWE-476: NULL Pointer Dereference) is an unhandled edge case: when loginctl returns a Remote field containing only a newline character, fgets() reads the line successfully but strtok_r(buf, "\n", &saveptr) finds no non-delimiter token and returns NULL. The code then passes this NULL pointer directly to strcmp(is_remote, "no"), which dereferences it - causing undefined behavior, typically manifesting as SIGSEGV. Because pam_usb operates inside privileged PAM context (sudo, login, su), the crash propagates to those processes. The fix in 0.9.2 adds a NULL check on the strtok_r return value before proceeding.

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.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

Local attack vector and low-privilege prerequisite confirmed by description; no confidentiality or integrity impact; availability High because crash can block all service authentication.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/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
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

2
Patch available
Jun 18, 2026 - 19:01 EUVD
CVE Published
Jun 18, 2026 - 17:30 cve.org
MEDIUM 5.5

DescriptionCVE.org

pam_usb provides hardware authentication for Linux using ordinary removable media. In versions 0.9.1 and below, pusb_is_loginctl_local() can cause a NULL dereference crash when parsing loginctl output. The function calls popen() and reads the result; if the Remote field is only a newline, fgets() succeeds but strtok_r(buf, "\n", &saveptr) returns NULL. A subsequent strcmp(is_remote, "no") then dereferences NULL, causing undefined behavior (typically SIGSEGV) and crashing the PAM module. This can crash the authenticating process (e.g., sudo, login) and, depending on PAM stack configuration, deny access for all users of the affected service. This issue has been fixed in version 0.9.2.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% 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

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

Attack Technique

A null pointer dereference occurs when a program attempts to access memory through a pointer that has been set to NULL (address 0x0).

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