CVE-2025-24531 Details
Description
In OpenSC pam_pkcs11 before 0.6.13, pam_sm_authenticate() wrongly returns PAM_IGNORE in many error situations (such as an error triggered by a smartcard before login), allowing authentication bypass.
A vulnerability allowing authentication bypass has been identified in the OpenSC pam_pkcs11 module, specifically in version 0.6.12 prior to 0.6.13. The issue arises because the pam_sm_authenticate() function incorrectly returns PAM_IGNORE in various error situations, such as when a smart card fails to initialize before login. This flaw can be exploited, particularly on systems using GDM with smart card authentication enabled, by inserting a mismatched smart card or YubiKey.
Users can update to OpenSC pam_pkcs11 version 0.6.13, which restores the correct authentication behavior by ensuring that error conditions are properly handled. Instructions for updating can be found in the OpenSC GitHub repository.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jan 16, 2026CISA-ADP
Assessed Jan 16, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| http://www.openwall.com/lists/oss-security/2025/02/06/3 | CVE | Mailing ListTechnical Analysis |
| http://www.openwall.com/lists/oss-security/2025/02/06/7 | CVE | Mailing ListTechnical Description |
| https://github.com/OpenSC/pam_pkcs11/releases | [email protected] | Vendor |
| https://github.com/OpenSC/pam_pkcs11/security/advisories/GHSA-7mf6-rg36-qgch | [email protected] | AdvisoryRemedyVendor |
| https://www.openwall.com/lists/oss-security/2025/02/06/3 | [email protected] | AdvisoryMailing ListTechnical Analysis |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-393 | Return of Wrong Status Code | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| OpenSC pam_pkcs11 | All versions |
CPE
Remediation
| |
| openSUSE Tumbleweed | All versions |
CPE
Remediation
| |
| Arch Linux | All versions |
CPE
Remediation
| |
| Exherbo Linux | All versions |
CPE
Remediation
| |
| Linux from Scratch | All versions |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jan 16, 2026 | CVE Modified | CVE |
| Jan 16, 2026 | New CVE Received | [email protected] |
Volerion