CVEfocus › CVE database › CVE-2025-6020

CVE-2025-6020Linux-pam: linux-pam directory traversal

CVSS 7.8 HighEPSS 0.3% (higher than 19% of CVEs)Published 2025-06-17Updated 2026-11-06Assigner: redhat

A flaw was found in linux-pam. The module pam_namespace may use access user-controlled paths without proper protection, allowing local users to elevate their privileges to root via multiple symlink attacks and race conditions.

CWE-22

What to do

Fixed builds are available from AlmaLinux, Debian, Red Hat, Rocky Linux, Ubuntu: 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

24Fixed
5Fix pending

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.10pamFixed1.5.3-7ubuntu6UBUNTU-CVE-2025-6020
Ubuntu 24.04pamFixed1.5.3-5ubuntu5.4UBUNTU-CVE-2025-6020
Ubuntu 22.04pamFixed1.4.0-11ubuntu2.6UBUNTU-CVE-2025-6020
Ubuntu 20.04pamFix pendingUBUNTU-CVE-2025-6020
Ubuntu 18.04pamFix pendingUBUNTU-CVE-2025-6020
Ubuntu 16.04pamFix pendingUBUNTU-CVE-2025-6020
Ubuntu 14.04pamFix pendingUBUNTU-CVE-2025-6020
Debian 14pamFixed1.7.0-5DEBIAN-CVE-2025-6020
Debian 13pamFixed1.7.0-5DEBIAN-CVE-2025-6020
Debian 12pamFix pendingDEBIAN-CVE-2025-6020
Red Hat Enterprise Linux 10pamFixed0:1.6.1-8.el10RHSA-2025:20181
Red Hat Enterprise Linux 10pam-develFixed0:1.6.1-8.el10RHSA-2025:20181
Red Hat Enterprise Linux 10pam-libsFixed0:1.6.1-8.el10RHSA-2025:20181
Red Hat Enterprise Linux 9pamFixed0:1.5.1-25.el9_6RHSA-2025:15099
Red Hat Enterprise Linux 9pam-develFixed0:1.5.1-26.el9_6RHSA-2025:9526
Red Hat Enterprise Linux 9pam-docsFixed0:1.5.1-25.el9_6RHSA-2025:15099
Red Hat Enterprise Linux 8pamFixed0:1.3.1-38.el8_10RHSA-2025:10027
Red Hat Enterprise Linux 8pam-develFixed0:1.3.1-37.el8_10RHSA-2025:14557
AlmaLinux 10pamFixed1.6.1-8.el10ALSA-2025:20181
AlmaLinux 10pam-develFixed1.6.1-8.el10ALSA-2025:20181
AlmaLinux 10pam-libsFixed1.6.1-8.el10ALSA-2025:20181
AlmaLinux 9pamFixed1.5.1-26.el9_6ALSA-2025:9526
AlmaLinux 9pam-develFixed1.5.1-25.el9_6ALSA-2025:15099
AlmaLinux 9pam-docsFixed1.5.1-26.el9_6ALSA-2025:9526
AlmaLinux 8pamFixed1.3.1-38.el8_10ALSA-2025:10027
AlmaLinux 8pam-develFixed1.3.1-38.el8_10ALSA-2025:10027
Rocky Linux 10pamFixed0:1.6.1-8.el10RLSA-2025:20181
Rocky Linux 9pamFixed0:1.5.1-26.el9_6RLSA-2025:9526
Rocky Linux 8pamFixed0:1.3.1-38.el8_10RLSA-2025:10027

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.