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

Published Jun 18, 2026
·
Updated

pamusb provides hardware authentication for Linux using ordinary removable media. In versions 0.9.1 and below, pusbisloginctllocal() 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 strtokr(buf, "\n", &saveptr) returns NULL. A subsequent strcmp(isremote, "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.

Affected Software

1 affected component
pam_usb pam_usb<=0.9.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade pam_usb to a version that resolves this vulnerability.

    Fixed in 0.9.2

Event History

Jun 18, 2026
CVE Published
via MITRE·05:30 PM
Data Sourced
via MITRE·05:30 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2026-48985?

CVE-2026-48985 has a medium severity rating of 5.5.

2

How do I fix CVE-2026-48985?

To fix CVE-2026-48985, upgrade pam_usb to version 0.9.2 or later.

3

What is the impact of CVE-2026-48985?

CVE-2026-48985 can lead to a NULL dereference crash when parsing loginctl output.

4

Which versions of pam_usb are affected by CVE-2026-48985?

Versions 0.9.1 and below of pam_usb are affected by CVE-2026-48985.

5

What type of vulnerability is CVE-2026-48985?

CVE-2026-48985 is classified as a Null Pointer Dereference vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203