NetSight
high7.1

CVE-2026-64666

pam_usb provides hardware authentication for Linux using removable media.

Impact

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.

An attacker can exploit this with local access to the system, with a regular user account, without any action by a user. If it succeeds: high risk of data being read, high risk of data or systems being changed.

Affected products · Mcdope

ProductAffected versions
Pam Usb
before 0.9.3
Version < 0.9.3

Weakness classification

References