CVE-2026-64666
pam_usb provides hardware authentication for Linux using removable …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31f
- github.com/mcdope/pam_usb/issues/410
- github.com/mcdope/pam_usb/pull/417
- github.com/mcdope/pam_usb/releases/tag/0.9.3
- github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33g
- nvd.nist.gov/vuln/detail/CVE-2026-64666
- cve.org/CVERecord?id=CVE-2026-64666
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.