Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconGain physical access to target system
-
DeliveryInsert USB device with absent metadata fields (no serial/vendor/model)
-
Exploitpam_usb authentication triggered by login or PAM-protected service
-
Installudisks_drive_get_serial/vendor/model returns NULL
-
C2NULL passed unchecked to strcmp() in src/device.c
-
ExecuteSIGSEGV crashes PAM authentication process
-
ImpactAuthentication 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
Lifecycle Timeline
2DescriptionCVE.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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2026-32660
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB