Skip to main content

pam_usb EUVDEUVD-2026-32660

| CVE-2026-44710 MEDIUM
NULL Pointer Dereference (CWE-476)
2026-05-27 security-advisories@github.com
4.6
CVSS 3.1 · Vendor: github
View

Attack ChainAIDerived

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

  1. Recon
    Gain physical access to target system
  2. Delivery
    Insert USB device with absent metadata fields (no serial/vendor/model)
  3. Exploit
    pam_usb authentication triggered by login or PAM-protected service
  4. Install
    udisks_drive_get_serial/vendor/model returns NULL
  5. C2
    NULL passed unchecked to strcmp() in src/device.c
  6. Execute
    SIGSEGV crashes PAM authentication process
  7. Impact
    Authentication denied or service disrupted

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

Physical access to the target system is required - CVSS AV:P confirms this is not remotely exploitable under any configuration. The crash is triggered specifically when pam_usb is present and active in the PAM stack, and a USB device is inserted whose UDisks2 representation returns NULL from udisks_drive_get_serial(), udisks_drive_get_vendor(), or udisks_drive_get_model() - a condition documented as valid behavior by the GIO/UDisks2 API for devices that do not expose those SCSI/ATA identity fields. No authentication is required prior to triggering the vulnerability (PR:N), and no user interaction beyond the physical act of inserting the device is needed (UI:N). Exploitation is strictly bounded to attackers with physical proximity to the machine; pam_usb must be installed and configured as an active PAM module for the relevant service or login path. Remote attackers, unprivileged network users, and non-physical vectors are entirely excluded by the attack vector constraint.

Impact

The CVSS 3.1 base score of 4.6 (Medium) reflects the significant constraint of a Physical attack vector (AV:P), meaning exploitation demands physical proximity to the target machine. Attack complexity is Low (AC:L) and no privileges are required (PR:N), but the physical access barrier substantially reduces the realistic threat population. The impact is exclusively availability (A:H), with no confidentiality or integrity consequences, consistent with a crash-only denial-of-service. No EPSS data was provided; however, given the physical access requirement and the narrow impact scope, automated or remote mass exploitation is not possible - this is a physically constrained, targeted-only risk. No CISA KEV listing exists and no public proof-of-concept code has been identified, reinforcing that exploitation remains theoretical or limited to highly targeted scenarios. The practical priority is moderate for systems where pam_usb is deployed and physical security cannot be guaranteed - for example, kiosks, shared workstations, or laptops in untrusted environments. The fix is already available in 0.8.7, making patching the clear and low-risk resolution.

Exploit ScenarioDerived

An attacker with physical access to a Linux workstation or kiosk running pam_usb inserts a USB device - such as a specialty flash drive, USB hub, or virtual media controller - that does not expose vendor, serial, or model metadata in its UDisks2 representation. When a user or service triggers PAM authentication, pam_usb queries the device via udisks_drive_get_serial() or a sibling call, receives NULL, and passes it to strcmp(), causing a SIGSEGV that crashes the authentication module. No public proof-of-concept code is known, but the trigger condition is trivially reproducible by anyone with access to a USB device lacking standard metadata fields and knowledge of the NULL dereference path.

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

NULL pointer dereference in pam_usb prior to 0.8.7 allows a physically present attacker to crash the PAM authentication stack by inserting a USB device whose serial, vendor, or model metadata fields are absent. The module in src/device.c passes return values from udisks_drive_get_serial(), udisks_drive_get_vendor(), and udisks_drive_get_model() directly to strcmp() without NULL checks, despite the GIO/UDisks2 API explicitly documenting that these accessors can return NULL for devices not exposing those fields. The result is undefined behavior - typically a SIGSEGV - that terminates the authentication process. No public exploit has been identified at time of analysis and no active exploitation is confirmed.

RemediationAI

Upgrade pam_usb to version 0.8.7, which introduces NULL checks before passing UDisks2 accessor return values to strcmp(), eliminating the undefined behavior. This is a vendor-released patch confirmed by the GitHub Security Advisory GHSA-j8cq-2gv6-gfwf at https://github.com/mcdope/pam_usb/security/advisories/GHSA-j8cq-2gv6-gfwf. For environments where immediate patching is not possible, administrators should restrict physical USB port access using hardware port blockers or BIOS/UEFI-level USB disable policies, though this will also prevent legitimate pam_usb-based authentication and may require fallback authentication methods to be configured. An alternative compensating control is to temporarily remove pam_usb from the active PAM stack (e.g., commenting out the relevant line in /etc/pam.d/ configuration files) and substituting a different second-factor or authentication method until the upgrade can be applied - note this disables hardware token authentication entirely during the interim period.

Affected VersionsENISA

pam_usb < 0.8.7

Affected Packages

euvd pam_usb fix: 0.8.7

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 media as hardware authentication tokens, relying on the GIO/UDisks2 stack to query device properties. The vulnerability resides in src/device.c, where three UDisks2 accessor functions - udisks_drive_get_serial(), udisks_drive_get_vendor(), and udisks_drive_get_model() - are called to retrieve device identity strings and then passed directly to strcmp() for comparison against expected values. The UDisks2 API contract explicitly permits these accessors to return NULL when a device does not expose the corresponding SCSI/ATA field, which is common with certain USB hubs, virtual media devices, and embedded storage controllers. Passing NULL to strcmp() violates the C standard (CWE-476: NULL Pointer Dereference), producing undefined behavior that on Linux systems manifests as a SIGSEGV, terminating the calling process. Because pam_usb operates within the PAM authentication framework, a crash in this module can disrupt the entire authentication chain for the session or service invoking it.

Know when the next one hits your stack

  • 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) PRIMARY 4.6 MEDIUM
AV:P/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Primary rating from Vendor (github) · only source for this CVE.

CVSS VectorVendor: github

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

Lifecycle Timeline

2
Patch available
May 27, 2026 - 22:04 EUVD
CVE Published
May 27, 2026 - 21:16 nvd
MEDIUM 4.6

DescriptionCVE.org

pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.8.7, src/device.c passed the return values of udisks_drive_get_serial(), udisks_drive_get_vendor(), and udisks_drive_get_model() directly to strcmp() without NULL checks. The GIO/UDisks API documentation states these accessors can return NULL for devices that do not expose the corresponding field. Passing NULL to strcmp() is undefined behaviour (typically a SIGSEGV). This vulnerability is fixed in 0.8.7.

Threat Intelligence Overview

EPSS Score
0.0%
Top 90% exploitable
Social Media
1
Sightings
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

23
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +23
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.

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