Skip to content
OpenAdvisories
High · 7.8 Public exploit CVE-2025-6020 EUVD-2025-19056

Linux-pam: linux-pam directory traversal

Published Jun 17, 2025 · Updated Nov 6, 2026 · Assigned by redhat

Vendor: Red Hat Product: cert-manager operator for Red Hat OpenShift 1.16 Product: OpenShift Compliance Operator 1 Product: Red Hat Discovery 2 Product: Red Hat Enterprise Linux 10 Product: Red Hat Enterprise Linux 10.0 Extended Update Support Product: Red Hat Enterprise Linux 7 Extended Lifecycle Support Product: Red Hat Enterprise Linux 8 Product: Red Hat Enterprise Linux 8.2 Advanced Update Support Product: Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support Product: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Product: Red Hat Enterprise Linux 8.6 Telecommunications Update Service Product: Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 8.8 Telecommunications Update Service Product: Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9 Product: Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9.4 Extended Update Support Product: Red Hat Insights proxy 1.5 Product: Red Hat OpenShift distributed tracing 3.6.0 Product: Red Hat OpenShift sandboxed containers 1.10 Product: Red Hat Web Terminal 1.11 on RHEL 9 Product: Red Hat Web Terminal 1.12 on RHEL 9 Product: RHEL-8 based Middleware Containers Product: RHOSS-1.36-RHEL-8 Package: pam Package: pam Package: pam Platform: Linux Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu

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.

Affected products

VendorProductAffectedFixed
— linux-pam < 1.7.1 1.7.1
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 7 Extended Lifecycle Support — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 8.2 Advanced Update Support — —
Red Hat Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.4 Extended Update Support — —
Red Hat Red Hat Web Terminal 1.11 on RHEL 9 — —
Red Hat Red Hat Web Terminal 1.12 on RHEL 9 — —
Red Hat RHEL-8 based Middleware Containers — —
Red Hat RHOSS-1.36-RHEL-8 — —
Red Hat cert-manager operator for Red Hat OpenShift 1.16 — —
Red Hat OpenShift Compliance Operator 1 — —
Red Hat Red Hat Discovery 2 — —
Red Hat Red Hat Insights proxy 1.5 — —
Red Hat Red Hat OpenShift distributed tracing 3.6.0 — —
Red Hat Red Hat OpenShift sandboxed containers 1.10 — —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pam 1.7.0-5 —
Debian 13 pam 1.7.0-5 —
Debian 12 pam 1.5.2-6+deb12u2 —
Debian 11 pam 1.4.0-9+deb11u2 DLA-4306-1
ReleasePackageFixed inAdvisory
Ubuntu 25.10 pam 1.5.3-7ubuntu6 —
Ubuntu 24.04 LTS pam 1.5.3-5ubuntu5.4 USN-7580-1
Ubuntu 22.04 LTS pam 1.4.0-11ubuntu2.6 USN-7580-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS pam No fix yet —
Ubuntu Pro 18.04 LTS pam No fix yet —
Ubuntu Pro 16.04 LTS pam No fix yet —
Ubuntu Pro 14.04 LTS pam No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 pam +2 1.6.1-8.el10 RHSA-2025:20181
RHEL 9 pam +2 1.5.1-25.el9_6 RHSA-2025:15099, RHSA-2025:9526
RHEL 8 pam +1 1.3.1-37.el8_10 RHSA-2025:14557, RHSA-2025:10027
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS pam +2 1.6.1-8.el10_0 RHSA-2025:22019
RHEL 9.4 EUS pam +2 1.5.1-24.el9_4 RHSA-2025:10024
RHEL 9.2 E4S pam +2 1.5.1-15.el9_2.1 RHSA-2025:10180
RHEL 9.0 E4S pam +2 1.5.1-9.el9_0.2 RHSA-2025:10354
RHEL 8.8 TUS pam +1 1.3.1-26.el8_8.1 RHSA-2025:10358
RHEL 8.8 E4S pam +1 1.3.1-26.el8_8.1 RHSA-2025:10358
RHEL 8.6 TUS pam +1 1.3.1-16.el8_6.2 RHSA-2025:10359
RHEL 8.6 E4S pam +1 1.3.1-16.el8_6.2 RHSA-2025:10359
RHEL 8.6 AUS pam +1 1.3.1-16.el8_6.2 RHSA-2025:10359
RHEL 8.4 AUS pam +1 1.3.1-14.el8_4.1 RHSA-2025:10361
RHEL 8.2 AUS pam +1 1.3.1-8.el8_2.1 RHSA-2025:10362
RHEL 7 ELS pam +1 1.1.8-23.el7_9.1 RHSA-2025:10357

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 pam +2 1.6.1-8.el10 ALSA-2025:20181
AlmaLinux 9 pam +2 1.5.1-25.el9_6 ALSA-2025:15099, ALSA-2025:9526
AlmaLinux 8 pam +1 1.3.1-37.el8_10 ALSA-2025:14557, ALSA-2025:10027

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 pam 1.6.1-8.el10 RLSA-2025:20181
Rocky Linux 9 pam 1.5.1-25.el9_6 RLSA-2025:15099, RLSA-2025:9526
Rocky Linux 8 pam 1.3.1-37.el8_10 RLSA-2025:14557, RLSA-2025:10027
ReleasePackageFixed inAdvisory
SLES 15 SP7 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLES 15 SP6 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLES 15 SP5 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLES 15 SP4 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLES 15 SP3 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
Show 16 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLES for SAP 15 SP4 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLES for SAP 15 SP3 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLE Micro 6.1 pam 1.6.1-slfo.1.1_3.1 SUSE-SU-2025:20441-1
SLE Micro 6.0 pam 1.6.0-5.1 SUSE-SU-2025:20427-1
SLE Micro 5.5 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLE Micro 5.4 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLE Micro 5.3 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLE Micro 5.2 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLE Micro 5.1 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLE HPC 15 SP5 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLE HPC 15 SP4 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SLE HPC 15 SP3 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SUSE Manager Server 4.3 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SUSE Manager Proxy 4.3 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
SUSE Enterprise Storage 7.1 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed pam 1.7.1-1.1 openSUSE-SU-2025:15256-1
openSUSE Leap 15.6 pam 1.3.0-150000.6.83.1 SUSE-SU-2025:02013-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 pam +2 1.5.1-8.amzn2023.0.6 ALAS2023-2025-1121
Amazon Linux 2 pam +1 1.1.8-23.amzn2.0.4 ALAS2-2025-2950

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 pam 1.5.3-5 —
Azure Linux 2 (CBL-Mariner) pam 1.5.1-8 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 pam +2 1.5.1-25.0.1.el9_6 ELSA-2025-15099, ELSA-2025-9526
Oracle Linux 8 pam +1 1.3.1-37.0.1.el8_10 ELSA-2025-14557, ELSA-2025-10027
Oracle Linux 7 pam +1 1.1.8-23.0.3.el7 ELSA-2025-10357

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 43

References