๐Ÿ” CVE Alert

CVE-2026-48985

MEDIUM 5.5

pam_usb: NULL Dereference Crash in pusb_is_loginctl_local when loginctl Returns Empty Remote Field

CVSS Score
5.5
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-476
Vendor mcdope
Product pam_usb
Published Jun 18, 2026
Last Updated Jun 18, 2026
Stay Ahead of the Next One

Get instant alerts for mcdope pam_usb

Be the first to know when new medium vulnerabilities affecting mcdope pam_usb are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Affected Versions

mcdope / pam_usb
< 0.9.2

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/mcdope/pam_usb/security/advisories/GHSA-7j6h-wfc2-mg5q github.com: https://github.com/mcdope/pam_usb/releases/tag/0.9.2