cve.bz

CVE-2025-24531 opensc project pam pkcs11: Return of Wrong Status Code

6.7 mediumEPSS 0.2%

Medium (6.7) in opensc project pam pkcs11. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.7 medium
CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 8th percentile. Scored 2026-11-30. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: total, assessed 2026-01-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-393 Return of Wrong Status Code
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-24531 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-24531?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-24531?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-24531 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
OpenSC project pam_pkcs11from 0.6.12 before 0.6.13

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12pam-pkcs110.6.12-1+deb12u1DEBIAN-CVE-2025-24531 DSA-5864-1
Debian13, 14pam-pkcs110.6.13-1DEBIAN-CVE-2025-24531
Ubuntu20.04:LTSpam-pkcs110.6.11-2ubuntu0.1USN-7363-1
Ubuntu22.04:LTSpam-pkcs110.6.11-4ubuntu0.1USN-7363-1
Ubuntu24.04:LTSpam-pkcs110.6.12-2ubuntu0.24.04.1UBUNTU-CVE-2025-24531 USN-7363-1
UbuntuPro:16.04:LTSpam-pkcs110.6.8-4ubuntu0.1~esm1USN-7363-1
UbuntuPro:18.04:LTSpam-pkcs110.6.9-2ubuntu0.1~esm1USN-7363-1
SUSELinux Micro 6.0pam_pkcs110.6.12-2.1SUSE-SU-2025:20130-1
SUSELinux Micro 6.1pam_pkcs110.6.12-slfo.1.1_3.1SUSE-SU-2025:20225-1
openSUSETumbleweedpam_pkcs110.6.13-1.1openSUSE-SU-2025:14738-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

To exploit this flaw, an attacker needs to cause a communication failure between the system software and the smartcard hardware. Additionally, this issue is only exploitable if PAM is configured to allow smartcard login without a secondary password requirement. Due to these reasons, this vulnerability has been rated with a moderate severity.

Red Hat's mitigation

To mitigate this issue, review PAM configurations that include pam_pkcs11. Ensure that the pam_pkcs11.so module is not configured with sufficient or optional in a manner that allows authentication to succeed when pam_pkcs11 returns PAM_IGNORE due to smartcard communication errors. If pam_pkcs11 is not actively used for authentication, consider removing its entry from the relevant PAM configuration files (e.g., /etc/pam.d/system-auth, /etc/pam.d/login). Incorrect modifications to PAM configuration files can lead to system lockout; always back up configuration files before making changes and test thoroughly.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 6pam_pkcs11Not affected
Red Hat Enterprise Linux 7pam_pkcs11Not affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-24531.

References

Check your stackJSON