CVE-2026-64666 · Package
NO FIX YET · SEE WHAT TO DO
pam_usb is a PAM module that lets removable USB media authenticate Linux logins. Before 0.9.3, it reads the XRDP_SESSION environment variable with plain getenv, so a calling user can clear it in a setuid PAM host and skip the rule that denies USB login over remote desktop.
first public Jul 2, 2026 · 1 source
Could this affect your app?
Free first check from your website. Connect your repo for the full answer.
Systems where pam_usb is installed as a PAM module and used for login through a setuid PAM host, especially machines that accept remote desktop sessions through xrdp. Machines without pam_usb, or where it is not configured for login, are not affected.
Not affected if no-xrdp-deny-rule, pam-usb-not-installed, patched-0.9.3
Who cares linux, pam, self-hosted, xrdp
pam_usb package version, or confirm pam_usb.so is present in your PAM modules directorypam_usb.so in PAM configuration files such as /etc/pam.d/ to see whether it is used by a setuid PAM host0.9.3 or later (the patched release named in the 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.
This page as ·
Check it with your coding agent
It reads this page and tells you if your code is affected.
Are you affected?
Ask from here. InfraStack checks the affected versions against your stack and answers in your inbox.
InfraStack checks the affected versions against your stack and answers in Slack, with the evidence and the fix.
NVD data is provided by NIST and is public domain. Posts quoted belong to their authors.