CVEfocus › CVE database › CVE-2024-10041

CVE-2024-10041Pam: libpam: libpam vulnerable to read hashed password

CVSS 4.7 MediumEPSS 0.3% (higher than 18% of CVEs)Published 2024-10-23Updated 2026-11-24Assigner: redhat

A vulnerability was found in PAM. The secret information is stored in memory, where the attacker can trigger the victim program to execute by sending characters to its standard input (stdin). As this occurs, the attacker can train the branch predictor to execute an ROP chain speculatively. This flaw could result in leaked passwords, such as those found in /etc/shadow while performing authentications.

CWE-922

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Debian, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

13Fixed
5Fix pending
4Will not fix
3Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04pamWill not fix
The upstream bug for this issue, #846, indicates that the fix in pull 686, also listed below as the commit in 1.6.0, fixes this issue. Fixing this CVE may…
UBUNTU-CVE-2024-10041
Ubuntu 22.04pamWill not fix
The upstream bug for this issue, #846, indicates that the fix in pull 686, also listed below as the commit in 1.6.0, fixes this issue. Fixing this CVE may…
UBUNTU-CVE-2024-10041
Ubuntu 20.04pamFix pendingUBUNTU-CVE-2024-10041
Ubuntu 18.04pamFix pendingUBUNTU-CVE-2024-10041
Ubuntu 16.04pamFix pendingUBUNTU-CVE-2024-10041
Ubuntu 14.04pamFix pendingUBUNTU-CVE-2024-10041
Debian 14pamFixed1.7.0-2DEBIAN-CVE-2024-10041
Debian 13pamFixed1.7.0-2DEBIAN-CVE-2024-10041
Debian 12pamFix pendingDEBIAN-CVE-2024-10041
Red Hat Enterprise Linux 10pamNot affected
Red Hat Enterprise Linux 10pam-develNot affected
Red Hat Enterprise Linux 10pam-libsNot affected
Red Hat Enterprise Linux 9pamFixed0:1.5.1-21.el9_5RHSA-2024:11250
Red Hat Enterprise Linux 9pam-develFixed0:1.5.1-21.el9_5RHSA-2024:11250
Red Hat Enterprise Linux 9pam-docsFixed0:1.5.1-21.el9_5RHSA-2024:11250
Red Hat Enterprise Linux 8pamFixed0:1.3.1-36.el8_10RHSA-2024:10379
Red Hat Enterprise Linux 8pam-develFixed0:1.3.1-36.el8_10RHSA-2024:10379
Red Hat Enterprise Linux 7pamWill not fix
Out of support scope
Red Hat Enterprise Linux 7pam-develWill not fix
Out of support scope
AlmaLinux 9pamFixed1.5.1-21.el9_5ALSA-2024:11250
AlmaLinux 9pam-develFixed1.5.1-21.el9_5ALSA-2024:11250
AlmaLinux 9pam-docsFixed1.5.1-21.el9_5ALSA-2024:11250
AlmaLinux 8pamFixed1.3.1-36.el8_10ALSA-2024:10379
AlmaLinux 8pam-develFixed1.3.1-36.el8_10ALSA-2024:10379
Rocky Linux 8pamFixed0:1.3.1-36.el8_10RLSA-2024:10379

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Workaround: This vulnerability is mitigated if SELinux is in Enforcing mode. To verify if SELinux is in Enforcing mode, the output of the `getenforce` command will return `Enforcing', see the example below: ~~~ $ getenforce Enforcing ~~~ To more information about SELinux, specifically how to set it to Enforcing mode, see the links below. https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/8/html-single/using_selinux/index#changing-to-enforcing-mode_changing-selinux-states-and-modes https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/9/html-single/using_selinux/index#changing-to-enforcing-mode_changing-selinux-states-and-modes

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.