CVE-2026-48983
JSON

5.8medium

pam_usb: TOCTOU race condition in pad directory creation allows symlink substitution

Severity
5.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.08% (higher than 0% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

pam_usb provides hardware authentication for Linux using ordinary removable media. In versions prior to 0.9.2, a symlink race condition exists in per-device and per-user pad directory creation. pam_usb uses a check-then-act pattern: it calls lstat() to test for existence and then calls mkdir() separately to create the directory. A local attacker can win the race between these calls by replacing the target path with a symlink to a directory they control. If successful, one-time pad files may be written to an attacker-controlled location, potentially exposing future pad values before use or disrupting authentication. This issue has been fixed in version 0.9.2.

Affected

Product or packageVersionsReported by
mcdope pam_usb< 0.9.2CVE List

Classification

CWE-367

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

pam_usb provides hardware authentication for Linux using ordinary removable media. In versions prior to 0.9.2, a symlink race condition exists in per-device and per-user pad directory creation. pam_usb uses a check-then-act pattern: it calls lstat() to test for existence and then calls mkdir() separately to create the directory. A local attacker can win the race between these calls by replacing the target path with a symlink to a directory they control. If successful, one-time pad files may be written to an attacker-controlled location, potentially exposing future pad values before use or disrupting authentication. 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 ordinarios. En versiones anteriores a la 0.9.2, existe una condición de carrera de enlace simbólico en la creación de directorios de pad por dispositivo y por usuario. pam_usb utiliza un patrón de verificar y luego actuar: llama a lstat() para comprobar la existencia y luego llama a mkdir() por separado para crear el directorio. Un atacante local puede ganar la carrera entre estas llamadas reemplazando la ruta de destino con un enlace simbólico a un directorio que controla. Si tiene éxito, los archivos de pad de un solo uso pueden escribirse en una ubicación controlada por el atacante, exponiendo potencialmente valores de pad futuros antes de su uso o interrumpiendo la autenticación. Este problema ha sido corregido en la versión 0.9.2.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-48983 changed 2026-06-22CVE Terms of Use
NVDCVE-2026-48983 changed 2026-10-26Public domain