# CVE-2026-48985: pam_usb: NULL Dereference Crash in pusb_is_loginctl_local when loginctl Returns Empty Remote Field

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- 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.11%, higher than 1% of CVEs (2026-12-01)
- Published: 2026-06-18T17:30:31.873Z
- Modified: 2026-10-26T11:10:00.157Z
- Weaknesses: CWE-476
- 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 0.9.1 and below, pusb_is_loginctl_local() can cause a NULL dereference crash when parsing loginctl output. The function calls popen() and reads the result; if the Remote field is only a newline, fgets() succeeds but strtok_r(buf, "\n", &saveptr) returns NULL. A subsequent strcmp(is_remote, "no") then dereferences NULL, causing undefined behavior (typically SIGSEGV) and crashing the PAM module. This can crash the authenticating process (e.g., sudo, login) and, depending on PAM stack configuration, deny access for all users of the affected service. 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-7j6h-wfc2-mg5q>
- <https://github.com/mcdope/pam_usb/releases/tag/0.9.2>

## Sources

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

---

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