Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2025-24531

Опубликовано: 16 янв. 2026
Источник: redhat
CVSS3: 6.7

Описание

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 flaw was found in pam_pkcs11. The pam_sm_authenticate function wrongly returns PAM_IGNORE in some communication errors with a smartcard or PKCS#11 token, such as a smartcard being removed or a hardware failure. In some specific PAM configurations, this return code allows the authentication process to continue without valid credentials, effectively granting unauthorized access to the system.

Отчет

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.

Меры по смягчению последствий

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.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6pam_pkcs11Not affected
Red Hat Enterprise Linux 7pam_pkcs11Not affected

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-393
https://bugzilla.redhat.com/show_bug.cgi?id=2430414pam_pkcs11: authentication bypass in error situations

6.7 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.7
ubuntu
3 месяца назад

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.

CVSS3: 6.7
nvd
3 месяца назад

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.

CVSS3: 6.7
debian
3 месяца назад

In OpenSC pam_pkcs11 before 0.6.13, pam_sm_authenticate() wrongly retu ...

CVSS3: 9.4
fstec
больше 1 года назад

Уязвимость функции pam_sm_authenticate() модуля аутентификации PAM-PKCS#11 операционных систем Linux, позволяющая нарушителю обойти процедуру аутентификации и получить несанкционированный доступ к защищаемой информации

CVSS3: 9.4
redos
12 месяцев назад

Уязвимость pam_pkcs11

6.7 Medium

CVSS3