# CVE-2026-48983: pam_usb: TOCTOU race condition in pad directory creation allows symlink substitution

- 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:H/I:L/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.08%, higher than 0% of CVEs (2026-12-01)
- Published: 2026-06-18T19:07:56.198Z
- Modified: 2026-10-26T11:10:00.157Z
- Weaknesses: CWE-367
- 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, 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.

(As written by CVE List.)

## Affected

- mcdope pam_usb: < 0.9.2

## References

- <https://github.com/mcdope/pam_usb/security/advisories/GHSA-4j8q-67fq-3xc3>
- <https://github.com/mcdope/pam_usb/releases/tag/0.9.2>

## Sources

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

---

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