{"id":"CVE-2026-48983","published":"2026-06-18T19:07:56Z","modified":"2026-06-22T12:41:34Z","title":"pam_usb: TOCTOU race condition in pad directory creation allows symlink substitution","vendor":"mcdope","product":"pam_usb","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.8,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00107,"percentile":0.0116,"provenance":"source"},"cwes":[{"id":"CWE-367","name":"Time-of-check Time-of-use (TOCTOU) Race Condition"}],"references":[{"url":"https://github.com/mcdope/pam_usb/security/advisories/GHSA-4j8q-67fq-3xc3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/mcdope/pam_usb/releases/tag/0.9.2","tags":["x_refsource_MISC"]}],"priority":{"score":4.3,"factors":[{"name":"EPSS percentile","points":0.23},{"name":"CVSS severity","points":4.06}]},"vendorSlug":"mcdope","affectedVersions":[{"vendor":"mcdope","product":"pam_usb","versions":["< 0.9.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-22T12:41:19.864255Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-37936","exploited":false,"provenance":"source"}}