7.1high
pam_usb: OTP pad authentication bypass via missing system pad check and uninitialized RNG buffer
- Severity
- 7.1high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.12% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, the pusb_pad_compare() function in src/pad.c only verified that the user-side pad (~/.pamusb/device.pad) could be read, but did not enforce that the system-side pad (the pad file on the USB device) was also present and readable. If the user-side pad was deleted or unreadable, the function returned a failure that was treated as non-fatal in certain code paths, allowing authentication to succeed without the USB device being verified. A local user can delete their own ~/.pamusb/device.pad to remove the USB device requirement and authenticate without the physical device. This vulnerability is fixed in 0.9.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mcdope pam_usb | < 0.9.0 | CVE List |
Classification
What each source says
CVE List
pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.0, the pusb_pad_compare() function in src/pad.c only verified that the user-side pad (~/.pamusb/device.pad) could be read, but did not enforce that the system-side pad (the pad file on the USB device) was also present and readable. If the user-side pad was deleted or unreadable, the function returned a failure that was treated as non-fatal in certain code paths, allowing authentication to succeed without the USB device being verified. A local user can delete their own ~/.pamusb/device.pad to remove the USB device requirement and authenticate without the physical device. This vulnerability is fixed in 0.9.0.
NVD (es)
pam_usb proporciona autenticación de hardware para Linux utilizando medios extraíbles ordinarios. Antes de la versión 0.9.0, la función pusb_pad_compare() en src/pad.c solo verificaba que el pad del lado del usuario (~/.pamusb/device.pad) pudiera leerse, pero no exigía que el pad del lado del sistema (el archivo pad en el dispositivo USB) también estuviera presente y fuera legible. Si el pad del lado del usuario era eliminado o ilegible, la función devolvía un fallo que se trataba como no fatal en ciertas rutas de código, permitiendo que la autenticación tuviera éxito sin que se verificara el dispositivo USB. Un usuario local puede eliminar su propio ~/.pamusb/device.pad para eliminar el requisito del dispositivo USB y autenticarse sin el dispositivo físico. Esta vulnerabilidad se corrige en la versión 0.9.0.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-47272 changed 2026-05-28 | CVE Terms of Use |
| NVD | CVE-2026-47272 changed 2026-10-26 | Public domain |