# CVE-2026-48982: pam_usb: Missing O_EXCL on pad temp file creation allows concurrent update race

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.12%, higher than 1% of CVEs (2026-11-30)
- Published: 2026-06-18T19:01:08.766Z
- Modified: 2026-10-26T11:10:00.157Z
- Weaknesses: CWE-362
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- mcdope pam_usb: < 0.9.2

## References

- <https://github.com/mcdope/pam_usb/security/advisories/GHSA-hxh6-9574-5vp6>
- <https://github.com/mcdope/pam_usb/releases/tag/0.9.2>

## Sources

- CVE List: [CVE-2026-48982](https://www.cve.org/CVERecord?id=CVE-2026-48982), CVE Terms of Use, modified 2026-06-22
- NVD: [CVE-2026-48982](https://nvd.nist.gov/vuln/detail/CVE-2026-48982), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-48982 · Whole record: https://cve.day/CVE-2026-48982.json · Rebuilt by cve.day 2026-11-25T22:59:25.172Z
