CVE-2025-6020: linux-pam - Privilege Escalation
- Cve: CVE-2025-6020
- Name: linux-pam - Privilege Escalation
- Description: 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.
- Impact: Local users can escalate their privileges to root, compromising the entire system.
- Remediation: Update to the latest linux-pam version with the fix applied.
- Vulnerability type: race_condition
- Vulnerability impact: privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00492
- Epss percentile: 0.43115
- Assignee: [email protected]
- Published at: 2025-06-17T13:15:21Z
- Age in days: 525
- Modified at: 2026-11-06T01:17:47Z
- Public exploits total: 1
- References total: 32
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-6020
- Nvd status: deferred
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, products total, products, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/knoxoxen/CVE-2025-6020-upstream-fix | poc-in-github | 2026-11-10 |
References
Same in every row:
- Source: nvd
- Tags:
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| linux-pam/linux-pam | fix, security_advisory | yes | /v1/repositories/linux-pam/linux-pam |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-11-10
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts