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

Published Jun 12, 2025
·
Updated

A flaw was found in linux-pam. The module pamnamespace 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.

Other sources

Linux-pam: linux-pam directory traversal

— Microsoft

The module pamnamespace in linux-pam <= 1.7.0 may access user-controlled paths without proper protections, which allows a local user to elevate their privileges to root via multiple symlink attacks and race conditions.

— Red Hat

Affected Software

9 affected componentsFixes available
Linux-PAM Linux-PAM<=1.7.0
Microsoft azl3 pam 1.5.3-5<1.5.3-5
1.5.3-5
Microsoft cbl2 pam 1.5.1-7<1.5.1-8
1.5.1-8
Microsoft cbl2 pam 1.5.1-8<1.5.1-8
1.5.1-8
IBM SevOne Network Performance Management<=7.0.0 - 8.2.2
debian/pam<1.5.2-6+deb12u3
1.5.2-6+deb12u3
debian/pam<1.7.0-5
1.7.0-5
debian/pam<1.7.0-5
1.7.0-5
debian/pam<=1.5.2-6+deb12u2
1.7.0-41.4.0-9+deb11u21.5.2-6+deb12u31.7.0-5

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.5.3-5
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.5.1-8
  3. Upgrade

    Upgrade debian/pam to a version that resolves this vulnerability.

    Fixed in 1.5.2-6+deb12u3
  4. Upgrade

    Upgrade debian/pam to a version that resolves this vulnerability.

    Fixed in 1.7.0-5
  5. Upgrade

    Upgrade debian/pam to a version that resolves this vulnerability.

    Fixed in 1.7.0-4Fixed in 1.4.0-9+deb11u2Fixed in 1.5.2-6+deb12u3Fixed in 1.7.0-5

Event History

Jun 12, 2025
Data Sourced
via Red Hat·04:42 PM
DescriptionSeverityAffected Software
Jun 17, 2025
CVE Published
via MITRE·12:44 PM
Data Sourced
via MITRE·12:44 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 PM
DescriptionSeverityWeakness
Jun 19, 2025
News Published
via The Hacker News·03:33 AM
Jun 23, 2025
Event
via FIRST·12:00 AM
News Published
via The Hacker News·09:30 AM
Jul 11, 2025
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Jul 23, 2025
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Dec 17, 2025
Updated
via IBM·12:00 AM
Affected Software
Jan 15, 2026
Updated
via IBM·12:00 AM
Affected Software
Mar 2, 2026
Updated
via IBM·12:00 AM
Affected Software
May 14, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 26, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 6, 2026
Data Sourced
via OSV·09:47 AM
Affected Software
Nov 10, 2026
Exploit Published
via GitHub·03:44 PM
Nov 14, 2026
Updated
via OSV·10:00 AM
Affected Software
Nov 27, 2026
Updated
via OSV·12:00 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2025-6020?

CVE-2025-6020 is considered to have a high severity due to the potential for privilege escalation to root.

2

How do I fix CVE-2025-6020?

To fix CVE-2025-6020, upgrade to linux-pam version 1.7.1 or newer where the vulnerability is resolved.

3

Who is affected by CVE-2025-6020?

CVE-2025-6020 affects users of linux-pam versions 1.7.0 and earlier.

4

What type of vulnerability is CVE-2025-6020?

CVE-2025-6020 is a local privilege escalation vulnerability.

5

What causes the vulnerability in CVE-2025-6020?

The vulnerability in CVE-2025-6020 is caused by improper handling of user-controlled paths in the pam_namespace module.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203