CVEfocus › CVE database › CVE-2025-8941

CVE-2025-8941Linux-pam: incomplete fix for cve-2025-6020

CVSS 7.8 HighEPSS 0.3% (higher than 22% of CVEs)Published 2025-08-13Updated 2026-02-26Assigner: redhat

A flaw was found in linux-pam. The pam_namespace module may improperly handle user-controlled paths, allowing local users to exploit symlink attacks and race conditions to elevate their privileges to root. This CVE provides a "complete" fix for CVE-2025-6020.

CWE-22

What to do

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

Debian has 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

12Fixed
3Fix pending
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 25.10pamNot affected
vulnerable_code_not_present
Ubuntu 24.04pamNot affected
vulnerable_code_not_present
Ubuntu 22.04pamNot affected
vulnerable_code_not_present
Debian 14pamFix pendingDEBIAN-CVE-2025-8941
Debian 13pamFix pendingDEBIAN-CVE-2025-8941
Debian 12pamFix pendingDEBIAN-CVE-2025-8941
Red Hat Enterprise Linux 9pamFixed0:1.5.1-26.el9_6RHSA-2025:15099
Red Hat Enterprise Linux 9pam-develFixed0:1.5.1-26.el9_6RHSA-2025:15099
Red Hat Enterprise Linux 9pam-docsFixed0:1.5.1-26.el9_6RHSA-2025:15099
Red Hat Enterprise Linux 8pamFixed0:1.3.1-38.el8_10RHSA-2025:14557
Red Hat Enterprise Linux 8pam-develFixed0:1.3.1-38.el8_10RHSA-2025:14557
AlmaLinux 9pamFixed1.5.1-26.el9_6ALSA-2025:15099
AlmaLinux 9pam-develFixed1.5.1-26.el9_6ALSA-2025:15099
AlmaLinux 9pam-docsFixed1.5.1-26.el9_6ALSA-2025:15099
AlmaLinux 8pamFixed1.3.1-38.el8_10ALSA-2025:14557
AlmaLinux 8pam-develFixed1.3.1-38.el8_10ALSA-2025:14557
Rocky Linux 9pamFixed0:1.5.1-26.el9_6RLSA-2025:15099
Rocky Linux 8pamFixed0:1.3.1-38.el8_10RLSA-2025:14557

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: Disable the `pam_namespace` module if it is not essential for your environment, or carefully review and configure it to avoid operating on any directories or paths that can be influenced or controlled by unprivileged users, such as user home directories or world-writable locations like `/tmp`.

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.