pam_usb: Thread-unsafe static pointer in log.c causes data race under concurrent PAM authentication
mcdope pam_usb
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| mcdope pam_usb |
| No fix yet |
Original description
pam_usb provides hardware authentication for Linux using ordinary removable media. Prior to 0.9.1, src/log.c contains a process-wide static pointer that is written on every PAM invocation with the address of a stack-local variable. This violates the PAM re-entrancy requirement and creates a data race when the PAM stack is invoked concurrently from multiple threads. This vulnerability is fixed in 0.9.1.
From the CVE record · GitHub_M