4.7medium
pam_usb: Infinite loop DoS in process-tree walk when parent process exits during authentication
- Severity
- 4.7medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.10% (higher than 1% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
pam_usb provides hardware authentication for Linux using removable media. In pam_usb 0.9.1 and earlier, usb_get_process_parent_id() can cause an infinite loop DoS because it does not initialize *ppid on failure. In pusb_local_login(), the same variable is reused as input and output in a process-tree while loop; if /proc/<pid>/stat cannot be read (for example, when an ancestor process exits during authentication), the PID is not updated and the loop does not terminate. This hangs the authenticating process (such as sudo, sshd, or login) until it is forcibly terminated. This issue has been fixed in version 0.9.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| mcdope pam_usb | < 0.9.2 | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
pam_usb provides hardware authentication for Linux using removable media. In pam_usb 0.9.1 and earlier, usb_get_process_parent_id() can cause an infinite loop DoS because it does not initialize *ppid on failure. In pusb_local_login(), the same variable is reused as input and output in a process-tree while loop; if /proc/<pid>/stat cannot be read (for example, when an ancestor process exits during authentication), the PID is not updated and the loop does not terminate. This hangs the authenticating process (such as sudo, sshd, or login) until it is forcibly terminated. This issue has been fixed in version 0.9.2.
NVD (es)
pam_usb proporciona autenticación de hardware para Linux utilizando medios extraíbles. En pam_usb 0.9.1 y anteriores, usb_get_process_parent_id() puede causar un DoS de bucle infinito porque no inicializa ppid al fallar. En pusb_local_login(), la misma variable se reutiliza como entrada y salida en un bucle while de árbol de procesos; si /proc/[pid]/stat no se puede leer (por ejemplo, cuando un proceso ancestro sale durante la autenticación), el PID no se actualiza y el bucle no termina. Esto cuelga el proceso de autenticación (como sudo, sshd o login) hasta que se termina forzosamente. Este problema ha sido solucionado en la versión 0.9.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-48986 changed 2026-06-22 | CVE Terms of Use |
| NVD | CVE-2026-48986 changed 2026-10-26 | Public domain |