Skip to main content

pam_usb CVE-2026-48984

| EUVDEUVD-2026-37922 MEDIUM
Compiler Removal of Code to Clear Buffers (CWE-14)
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
    Gain local low-privilege access on pam_usb host
  2. Delivery
    Trigger or observe OTP authentication event
  3. Exploit
    xfree() deallocates pad buffer without zeroing
  4. Execution
    Exploit co-existing use-after-free or heap inspection primitive
  5. Persist
    Read residual OTP pad bytes from freed heap region
  6. Impact
    Recover authentication material

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

Exploitation requires a local attacker with low-privilege access (consistent with CVSS PR:L) on the host running pam_usb. The essential limiting factor is the mandatory dependency on a co-existing secondary condition within the same process: either a use-after-free vulnerability that allows the attacker to access the freed heap region, or a separate heap inspection primitive granting read access to freed memory. Without one of these co-existing memory access conditions, the OS enforces process memory boundaries and the residual data in freed heap is not accessible to the attacker. The vulnerability does not require any non-default pam_usb configuration - the standard OTP authentication flow is sufficient to cause sensitive data to pass through the vulnerable xfree() helper. What limits exploitation is exclusively the dependency on chaining with an independent memory disclosure or use-after-free primitive, which substantially raises the practical attack complexity beyond the standalone CVSS AC:H rating.

Impact

The CVSS 3.1 base score of 4.7 with vector AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N accurately characterizes this as a moderate-severity local issue with high exploitation complexity. The high attack complexity (AC:H) reflects the critical dependency: this vulnerability does not provide a standalone read primitive - an attacker must chain it with either a separate use-after-free vulnerability in the pam_usb process or an independent heap inspection capability. Without that secondary primitive, freed heap memory is inaccessible beyond the process boundary under normal OS memory protections. The confidentiality impact is correctly rated High (C:H) because successful recovery of OTP pad bytes directly subverts the hardware authentication mechanism, which is the core security guarantee of the product. No EPSS score was provided in the input data - exploitation probability cannot be numerically assessed. The vulnerability is not listed in CISA KEV, and no public exploit code has been identified, consistent with the theoretical-but-chained-dependency nature of the attack. Despite the modest numerical score, the sensitivity of the exposed data class (authentication OTP material) means that defenders who use pam_usb should treat this as a meaningful hardening obligation, particularly given that the 0.9.2 patch also closes eleven additional findings including TOCTOU races and XXE injection that could collectively lower the barrier to exploitation.

Exploit ScenarioDerived

A local attacker with low-privilege access on a system running pam_usb waits for or triggers an authentication event, causing xfree() to deallocate a heap buffer containing OTP pad bytes without zeroing it. The attacker then exploits a separate use-after-free vulnerability in the pam_usb process - or uses a heap inspection primitive - to read the residual pad bytes from the freed region before they are overwritten, recovering material that can be used to forge or replay hardware authentication. No public exploit code exists for this chained scenario.

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

Insecure deallocation in pam_usb 0.9.1 and below leaves sensitive authentication material - including one-time pad (OTP) bytes read from removable media - resident in freed heap memory because the xfree() helper calls free() without first zeroing the buffer. On any system where a secondary use-after-free condition or heap inspection primitive is present within the same pam_usb process, an attacker could recover pad values or other credential material from those freed regions, potentially undermining the hardware authentication guarantee pam_usb is designed to provide. This is a defense-in-depth hardening gap patched in 0.9.2; no confirmed active exploitation or public exploit code has been identified at time of analysis.

RemediationAI

Vendor-released patch: pam_usb 0.9.2. The 0.9.2 release explicitly fixes xfree() to clear heap memory before calling free(), preventing sensitive authentication material from lingering in freed regions; release artifacts and notes are available at https://github.com/mcdope/pam_usb/releases/tag/0.9.2. The upgrade is strongly recommended by the vendor because the same release also addresses eleven additional security findings including TOCTOU races on the OTP pad directory, XXE injection via xmlReadFile(), environment variable injection in PAM context, symlink-following attacks on evdev nodes, and compiler/linker hardening gaps - collectively reducing the attack surface that could be chained to exploit this residual-data issue. If immediate upgrade is not possible, a compensating control is to restrict ptrace access for unprivileged users by setting kernel.yama.ptrace_scope=2 (via sysctl), which limits the heap inspection primitives available to local attackers; this does not eliminate the underlying residual data exposure but raises the bar for accessing freed memory. Additionally, ensuring process isolation (no shared address space, no coredump paths accessible to low-privilege users) reduces the window of exploitation.

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 Module) that uses ordinary removable USB storage as a second authentication factor, relying on one-time pad (OTP) files stored on the device to challenge-response authenticate users. The flaw maps to CWE-14 (Compiler Removal of Code to Clear Buffers): the central xfree() deallocation helper wraps free() without invoking a compiler-resistant clearing function such as explicit_bzero() or memset_s() first. Because optimizing compilers may strip a plain memset() call before free(), CWE-14 specifically mandates a compiler-barrier-safe clearing function. Prior hardening work (GHSA-vx6f-rrqr-j87c) had already applied explicit_bzero to certain specific OTP pad code paths, but the generalized xfree() helper - used throughout the codebase for all heap deallocations - was left unpatched, meaning any heap buffer passed through xfree() (credentials, paths, pad bytes) retains its contents in freed heap until a subsequent allocation happens to overwrite it. The affected CPE is cpe:2.3:a:mcdope:pam_usb:*:*:*:*:*:*:*:* covering all versions through 0.9.1.

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:H/I:N/A:N
vuln.today AI 4.7 MEDIUM

Local access only; high complexity requires chaining with a use-after-free or heap inspection primitive; low privilege sufficient; confidentiality impact only via OTP pad recovery.

3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N
4.0 AV:L/AC:H/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/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
High
Integrity
None
Availability
None

Lifecycle Timeline

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

DescriptionCVE.org

pam_usb provides hardware authentication for Linux using ordinary removable media. In versions 0.9.1 and below, the xfree() memory release helper in calls free() without first zeroing the buffer contents, releasing heap-allocated buffers containing sensitive data - including one-time pad bytes read from disk - without clearing, leaving the sensitive content in freed heap memory until it happens to be overwritten by a subsequent allocation. On a system where a use-after-free condition exists, or where a heap inspection primitive becomes available, this could allow recovery of pad values or other authentication material from freed memory regions. This is a defence-in-depth requirement consistent with prior hardening work in this codebase (GHSA-vx6f-rrqr-j87c applied explicit_bzero to some pad paths; this issue generalises the pattern to the central deallocation helper).

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

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

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