Track vulnerabilities like this one.
Sign up free to get alerted when software you use is affected.
7.8
CVE-2025-6020: Red Hat Enterprise Linux allows local users to gain root access
CVE-2025-6020 · published 1 year ago
Summary
The pam_namespace component in Red Hat Enterprise Linux versions 7, 8, 8.2, and 10 can be tricked by a user into following malicious shortcuts (symlinks) and timing attacks. This can let a regular user obtain full administrative rights on the system. Apply the latest security updates from Red Hat to fix the problem.
What to do
- Update debian rootio-pam to version 1.4.0-9+deb11u1.root.io.7.
- Update canonical pam to version 1.4.0-11ubuntu2.6.
- Update canonical pam to version 1.5.3-5ubuntu5.4.
- Update canonical pam to version 1.5.3-7ubuntu6.
- Update debian pam to version 1.4.0-9+deb11u2.
- Update debian pam to version 1.5.2-6+deb12u2.
- Update debian pam to version 1.7.0-5.
Affected software
| Ecosystem | Vendor | Product | Affected versions |
|---|---|---|---|
| – | red hat | red hat enterprise linux 10 | All versions |
| – | red hat | red hat enterprise linux 10.0 extended update support | All versions |
| – | red hat | red hat enterprise linux 7 extended lifecycle support | All versions |
| – | red hat | red hat enterprise linux 8 | All versions |
| – | red hat | red hat enterprise linux 8.2 advanced update support | All versions |
| – | red hat | red hat enterprise linux 8.4 advanced mission critical update support | All versions |
| – | red hat | red hat enterprise linux 8.6 advanced mission critical update support | All versions |
| – | red hat | red hat enterprise linux 8.6 telecommunications update service | All versions |
| – | red hat | red hat enterprise linux 8.6 update services for sap solutions | All versions |
| – | red hat | red hat enterprise linux 8.8 telecommunications update service | All versions |
| – | red hat | red hat enterprise linux 8.8 update services for sap solutions | All versions |
| – | red hat | red hat enterprise linux 9 | All versions |
| – | red hat | red hat enterprise linux 9.0 update services for sap solutions | All versions |
| – | red hat | red hat enterprise linux 9.2 update services for sap solutions | All versions |
| – | red hat | red hat enterprise linux 9.4 extended update support | All versions |
| – | red hat | red hat web terminal 1.11 on rhel 9 | All versions |
| – | red hat | red hat web terminal 1.12 on rhel 9 | All versions |
| – | red hat | rhel-8 based middleware containers | All versions |
| – | red hat | rhoss-1.36-rhel-8 | All versions |
| – | red hat | cert-manager operator for red hat openshift 1.16 | All versions |
| – | red hat | compliance operator 1 | All versions |
| – | red hat | red hat discovery 2 | All versions |
| – | red hat | red hat insights proxy 1.5 | All versions |
| – | red hat | red hat openshift distributed tracing 3.6.0 | All versions |
| – | red hat | red hat openshift sandboxed containers 1.1 | All versions |
| – | red hat | openshift compliance operator 1 | All versions |
| – | red hat | red hat openshift distributed tracing 3.6.1 | All versions |
| Root:Debian:11 | debian | rootio-pam |
< 1.4.0-9+deb11u1.root.io.7 Fix: upgrade to 1.4.0-9+deb11u1.root.io.7
|
| Ubuntu:Pro:14.04:LTS | canonical | pam | All versions |
| Ubuntu:Pro:16.04:LTS | canonical | pam | All versions |
| Ubuntu:Pro:18.04:LTS | canonical | pam | All versions |
| Ubuntu:Pro:20.04:LTS | canonical | pam | All versions |
| Ubuntu:22.04:LTS | canonical | pam |
< 1.4.0-11ubuntu2.6 Fix: upgrade to 1.4.0-11ubuntu2.6
|
| Ubuntu:24.04:LTS | canonical | pam |
< 1.5.3-5ubuntu5.4 Fix: upgrade to 1.5.3-5ubuntu5.4
|
| Ubuntu:25.10 | canonical | pam |
< 1.5.3-7ubuntu6 Fix: upgrade to 1.5.3-7ubuntu6
|
| Debian:11 | debian | pam |
< 1.4.0-9+deb11u2 Fix: upgrade to 1.4.0-9+deb11u2
|
| Debian:12 | debian | pam |
< 1.5.2-6+deb12u2 Fix: upgrade to 1.5.2-6+deb12u2
|
| Debian:13 | debian | pam |
< 1.7.0-5 Fix: upgrade to 1.7.0-5
|
| Debian:14 | debian | pam |
< 1.7.0-5 Fix: upgrade to 1.7.0-5
|
| – | red hat | red hat openshift sandboxed containers 1.10 | All versions |
Original advisory text
Linux-pam: linux-pam directory traversal
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.
References
- https://access.redhat.com/errata/RHSA-2025:10358 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:10359 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:10361 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:10362 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:10735 vendor-advisory x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2372512 issue-tracking x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:10027 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:10180 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:15099 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:15709 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:15827 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:15828 vendor-advisory x_refsource_REDHAT
- http://www.openwall.com/lists/oss-security/2025/06/17/1 URL
- https://github.com/linux-pam/linux-pam/security/advisories/GHSA-f9p8-gjr4-j9gx
- https://access.redhat.com/errata/RHSA-2025:10024 vendor-advisory x_refsource_REDHAT
- https://ubuntu.com/security/CVE-2025-6020 Third Party Advisory
- https://www.openwall.com/lists/oss-security/2025/06/17/1 Third Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2025-6020 Third Party Advisory
- https://ubuntu.com/security/notices/USN-7580-1 Vendor Advisory
- https://cert-portal.siemens.com/productcert/html/ssa-577017.html URL
- https://lists.debian.org/debian-lts-announce/2025/09/msg00021.html URL
- https://access.redhat.com/errata/RHSA-2025:10823 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:11386 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:11487 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:18219 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/downloads/content/package-browser/ URL
- https://catalog.redhat.com/software/containers/ URL
- https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6020.j... Vendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2025-6020 Vendor Advisory
- https://github.com/linux-pam/linux-pam Product
- https://access.redhat.com/errata/RHSA-2025:20181 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:21885 vendor-advisory x_refsource_REDHAT
- https://security-tracker.debian.org/tracker/CVE-2025-6020 Vendor Advisory
- https://access.redhat.com/errata/RHSA-2025:14557 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:16524 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:17181 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:22019 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:9526 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:0934 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-6020 vdb-entry x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:10354 vendor-advisory x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2025:10357 vendor-advisory x_refsource_REDHAT
Internet-facing
14 days
Internal
At next upgrade
- Not known to be exploited
- Needs hands-on effort to exploit
- Gives an attacker full control
Type
CWE-22Path Traversal
Timeline
Published17 Jun 2025
Updated4 Nov 2026
First seen7 Mar 2026
Sources
CVE-2025-6020 · NVD
CVE-2025-6020 · MITRE
CVE-2025-6020 · OSV
DEBIAN-CVE-2025-6020 · OSV
UBUNTU-CVE-2025-6020 · OSV
GHSA-f9p8-gjr4-j9gx · GHSA
Track software like this
Free during beta