CVE-2026-64666 Details
Description
pam_usb provides hardware authentication for Linux using removable media. Prior to version 0.9.3, src/local.c reads XRDP_SESSION with plain getenv(3) at the head of pusb_local_login while every other env consumer in the same function uses secure_getenv(3). When pam_usb.so loads into a setuid PAM host, the calling user controls the environment passed in. Clearing XRDP_SESSION before invoking the host bypasses the explicit XRDP-deny rule. Other remote-detection signals (rmsvc, evdev, loginctl, utmp) may still catch the session, but the env-based detection alone is defeated. This issue has been patched in version 0.9.3.
A vulnerability in pam_usb prior to version 0.9.3 allows for an XRDP session denial bypass. The issue arises because the software reads the XRDP_SESSION environment variable using the standard getenv function, rather than the more secure secure_getenv. This flaw can be exploited in setuid PAM contexts, where the user can manipulate the environment by unsetting the XRDP_SESSION variable before the PAM host is invoked, thereby circumventing the intended denial of service. Although other detection methods may still identify the session, this specific environmental check is rendered ineffective.
Users can upgrade to pam_usb version 0.9.3, which addresses this vulnerability by changing the environment variable read from getenv to secure_getenv, thereby preventing manipulation in setuid contexts.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Nov 11, 2026CISA-ADP
Assessed Nov 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f | [email protected] | Source CodeVendor |
| https://github.com/mcdope/pam_usb/issues/410 | [email protected] | Issue TrackingTechnical DescriptionVendor |
| https://github.com/mcdope/pam_usb/pull/417 | [email protected] | Source CodeVendor |
| https://github.com/mcdope/pam_usb/releases/tag/0.9.3 | [email protected] | Release NotesVendor |
| https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g | [email protected] | AdvisoryRemedyVendor |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-807 | Reliance on Untrusted Inputs in a Security Decision | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| mcdope pam_usb | <= 0.9.2 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 13, 2026 | CVE Modified | CISA-ADP |
| Nov 11, 2026 | New CVE Received | [email protected] |
Volerion