CVE-2026-64666
pam_usb security check bypass in XRDP session deny rule
A local user already logged in can clear an environment variable to bypass a block on XRDP remote sessions.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N
Fuente: CNA
Ciclo de vida de la vulnerabilidad
| Fecha | Fase | Evento | Detalle |
|---|---|---|---|
| Divulgación | Publicada | CVE-2026-64666 divulgada · CVSS 7.1 (CNA) | |
| Monitoreo | Detectada | Ingresó al índice | |
| Monitoreo | Fuente: NIST NVD | Registro visto por primera vez en NIST NVD | |
| Monitoreo | Fuente: OSV | Registro visto por primera vez en OSV | |
| Monitoreo | Fuente: ENISA EUVD | Registro visto por primera vez en ENISA EUVD | |
| Divulgación | Evaluación SSVC | CISA-ADP · explotación ninguna | |
| Divulgación | Modificada | Última actualización del registro | |
| Monitoreo | Verificada | Última verificación contra las fuentes |
pam_usb, a hardware authentication module for Linux that uses removable media, has a flaw where it reads the XRDP_SESSION environment variable with plain getenv instead of secure_getenv, so a local user who is already logged in can clear that variable before the module runs and get past its rule that denies logins from XRDP remote sessions. The attacker needs only low-privilege local access and no user interaction, and the flaw is fixed in a later release.
Affects pam_usb 0.9.2 and earlier releases that include the XRDP env-var deny block, when pam_usb.so loads into a setuid PAM host. Fixed in 0.9.3.
Descripción original del registro (GitHub_M)
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.
Condiciones y alcance
Desglose de métricas
Rangos afectados
Estado del parche por paquete
| Paquete / producto | Estado | Corregida en | Desde divulgación | Última versión |
|---|---|---|---|---|
pam_usb |
Corregida | 0.9.3 | — | — |
0.9.3Arsenal público
Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.
https://github.com/mcdope/pam_usb/security/advisories/GHSA-ffx6-xjp6-x33ghttps://github.com/mcdope/pam_usb/issues/410https://github.com/mcdope/pam_usb/pull/417https://github.com/mcdope/pam_usb/commit/0b179ed679d6522c6a571c5a8ae9bdc7edbad31fhttps://github.com/mcdope/pam_usb/releases/tag/0.9.3Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.
