CVE-2026-48982
JSON

5.8medium

pam_usb: Missing O_EXCL on pad temp file creation allows concurrent update race

Severity
5.8medium CVSS:3.1 by GitHub_M
Exploit likelihood
0.12% (higher than 1% of CVEs)
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, when updating a one-time pad file, a temporary file is created using open() without the O_EXCL flag. Without O_EXCL, the create operation is not atomic: two concurrent processes racing to update the same pad may both succeed in opening the file, with the second write silently overwriting the first. The one-time pad is the core replay-prevention mechanism of pam_usb. A successful race could result in the stored pad value diverging from what either process expected, potentially causing authentication failures or, in a precisely timed attack, creating a window for pad reuse. This issue has been fixed in version 0.9.2.

Affected

Product or packageVersionsReported by
mcdope pam_usb< 0.9.2CVE List

Classification

CWE-362

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, when updating a one-time pad file, a temporary file is created using open() without the O_EXCL flag. Without O_EXCL, the create operation is not atomic: two concurrent processes racing to update the same pad may both succeed in opening the file, with the second write silently overwriting the first. The one-time pad is the core replay-prevention mechanism of pam_usb. A successful race could result in the stored pad value diverging from what either process expected, potentially causing authentication failures or, in a precisely timed attack, creating a window for pad reuse. 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, al actualizar un archivo de pad de un solo uso, se crea un archivo temporal utilizando open() sin la bandera O_EXCL. Sin O_EXCL, la operación de creación no es atómica: dos procesos concurrentes compitiendo por actualizar el mismo pad pueden ambos lograr abrir el archivo, con la segunda escritura sobrescribiendo silenciosamente la primera. El pad de un solo uso es el mecanismo central de prevención de repeticiones de pam_usb. Una carrera exitosa podría resultar en que el valor del pad almacenado diverja de lo que cualquiera de los procesos esperaba, lo que podría causar fallos de autenticación o, en un ataque precisamente sincronizado, crear una ventana para la reutilización del pad. Este problema ha sido solucionado en la versión 0.9.2.

References

Sources

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