Cloudanix VulnDB

CVE-2025-6020

High · 7.8

CVSS

7.8

EPSS

0.5%

Published

Jun 17, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A local user on affected Linux systems could trick the login process with file shortcuts and timing tricks to take over the entire computer as an administrator.

Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Privilege Gain
Component
Library
Class
Privilege Escalation
Remediation
Patch
Effort
Medium
Patch risk
Low

What it actually does

The pam_namespace module in linux-pam performs operations on user-controlled paths without adequate symlink or race protection, enabling local privilege escalation to root.

Why it matters to the business

Local attackers can obtain full root access on affected Linux systems, resulting in complete host compromise and potential lateral movement with high operational disruption.

How an attack unfolds

An attacker with a local account crafts malicious symlinks and races pam_namespace operations during session initialization to redirect privileged actions and escalate to root; no named threat actors or ransomware campaigns are associated.

How to fix it

Upgrade affected packages to the versions that contain the fix for the pam_namespace symlink and race issues; apply vendor patches promptly given the local attack vector and CVSS 7.8 severity.

How to confirm the fix worked

Verify pam package versions are at or above the fixed releases, review /etc/security/namespace.conf for unsafe configurations, and test that pam_namespace no longer follows untrusted symlinks under concurrent access.

Typical attack path

  1. Obtain local unprivileged access on the target system
  2. Create symlink chains pointing to sensitive root-owned paths
  3. Trigger pam_namespace via login or su/sudo
  4. Win the race condition to perform unauthorized privileged file operations
  5. Elevate to root shell or implant persistent root-level access

How to detect it

Review authentication logs for unusual pam_namespace activity, check for unexpected symlinks in user home directories or /tmp during session setup, and examine process creation events around pam invocations for privilege anomalies.

What your security team should do

  • Prioritize patching linux-pam packages on all multi-user systems within standard change windows
  • Audit systems for custom pam_namespace configurations that reference user-writable directories
  • Monitor EPSS trend (currently low at 0.0047 with minor increase) and re-evaluate if exploit code appears
  • Restrict local account creation and review sudoers rules to limit exposure surface

The record

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.

Affected packages

Ecosystem Package Introduced Fixed
AlmaLinux:10 pam 0 1.6.1-8.el10
AlmaLinux:10 pam-devel 0 1.6.1-8.el10
AlmaLinux:10 pam-libs 0 1.6.1-8.el10
AlmaLinux:8 pam 0 1.3.1-37.el8_10
AlmaLinux:8 pam 0 1.3.1-38.el8_10
AlmaLinux:8 pam-devel 0 1.3.1-37.el8_10
AlmaLinux:8 pam-devel 0 1.3.1-38.el8_10
AlmaLinux:9 pam 0 1.5.1-25.el9_6
AlmaLinux:9 pam 0 1.5.1-26.el9_6
AlmaLinux:9 pam-devel 0 1.5.1-25.el9_6
AlmaLinux:9 pam-devel 0 1.5.1-26.el9_6
AlmaLinux:9 pam-docs 0 1.5.1-25.el9_6
AlmaLinux:9 pam-docs 0 1.5.1-26.el9_6
Debian:11 pam 0 No fix
Debian:12 pam 0 No fix
Debian:13 pam 0 No fix
Debian:14 pam 0 1.7.0-5
SUSE:Enterprise Storage 7.1 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Micro 5.1 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Micro 5.2 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Micro 5.3 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Micro 5.4 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Micro 5.5 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Module for Basesystem 15 SP6 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Module for Basesystem 15 SP7 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Module for Development Tools 15 SP6 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Module for Development Tools 15 SP7 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Server 15 SP3-LTSS pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Server 15 SP4-LTSS pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Server 15 SP5-LTSS pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP3 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP4 pam 0 1.3.0-150000.6.83.1
SUSE:Linux Enterprise Server for SAP Applications 15 SP5 pam 0 1.3.0-150000.6.83.1
SUSE:Manager Proxy 4.3 pam 0 1.3.0-150000.6.83.1
SUSE:Manager Server 4.3 pam 0 1.3.0-150000.6.83.1
openSUSE:Leap 15.6 pam 0 1.3.0-150000.6.83.1
openSUSE:Tumbleweed pam 0 1.7.1-1.1

Related vulnerabilities