NULL pointer dereference in Mcdope Pam Usb
CVE-2026-48985
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.002 (5.0th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 5th percentile — 5.0% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: 0.000
Affected products
- Mcdope Pam Usb — versions < 0.9.2
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-48985?
- CVE-2026-48985 is a medium-severity vulnerability in Mcdope Pam Usb, classified under NULL Pointer Dereference. CVSS score: 5.5/10. Published 2026-06-18.
- How severe is CVE-2026-48985?
- Medium severity. CVSS v3 base score is 5.5 out of 10.