CVE-2025-8941

Linux-pam: incomplete fix for cve-2025-6020

7.8 high EPSS 0.31%

Published 13 Aug 2025 Updated 26 Feb 2026 CNA: redhat

Description

A flaw was found in linux-pam. The pam_namespace module may improperly handle user-controlled paths, allowing local users to exploit symlink attacks and race conditions to elevate their privileges to root. This CVE provides a "complete" fix for CVE-2025-6020.

Severity (CVSS)

7.8 high CVSS 3.1 from redhat (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
local: the attacker needs local access, or a user has to open a prepared file
Attack complexity
low: an attack works without special conditions
Privileges required
low: the attacker needs an ordinary user account
User interaction
none: nobody has to click or open anything
Scope
unchanged: the damage stays inside the vulnerable component
Impact
confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 0.31%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.1% of all scored CVEs. Scores of 26 Nov 2026.

The assessment of CISA (SSVC, 14 Aug 2025):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
total: full control of the component or of its data

Weakness

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory

Affected products

As the CNA lists them.

ProductVersions
linux-pam
package linux-pam
unaffected the record does not list versions
Red Hat Enterprise Linux 7 Extended Lifecycle Support
package pam
unaffected 0:1.1.8-23.el7_9.2 and later
Other versions: affected
Red Hat Enterprise Linux 8
package pam
unaffected 0:1.3.1-38.el8_10 and later
Other versions: affected
Red Hat Enterprise Linux 8.2 Advanced Update Support
package pam
unaffected 0:1.3.1-8.el8_2.2 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support
package pam
unaffected 0:1.3.1-14.el8_4.2 and later
Other versions: affected
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On
package pam
unaffected 0:1.3.1-14.el8_4.2 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
package pam
unaffected 0:1.3.1-16.el8_6.3 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Telecommunications Update Service
package pam
unaffected 0:1.3.1-16.el8_6.3 and later
Other versions: affected
Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
package pam
unaffected 0:1.3.1-16.el8_6.3 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Telecommunications Update Service
package pam
unaffected 0:1.3.1-26.el8_8.2 and later
Other versions: affected
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
package pam
unaffected 0:1.3.1-26.el8_8.2 and later
Other versions: affected
Red Hat Enterprise Linux 9
package pam
unaffected 0:1.5.1-26.el9_6 and later
Other versions: affected
Red Hat Enterprise Linux 9
package pam
unaffected 0:1.5.1-26.el9_6 and later
Other versions: affected
Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions
package pam
unaffected 0:1.5.1-9.el9_0.3 and later
Other versions: affected
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions
package pam
unaffected 0:1.5.1-15.el9_2.2 and later
Other versions: affected
Red Hat Enterprise Linux 9.4 Extended Update Support
package pam
unaffected 0:1.5.1-24.el9_4.1 and later
Other versions: affected
Red Hat Web Terminal 1.11 on RHEL 9
package web-terminal/web-terminal-rhel9-operator
unaffected 1.11-19 and later
Other versions: affected
Red Hat Web Terminal 1.11 on RHEL 9
package web-terminal/web-terminal-tooling-rhel9
unaffected 1.11-8 and later
Other versions: affected
Red Hat Web Terminal 1.12 on RHEL 9
package web-terminal/web-terminal-tooling-rhel9
unaffected 1.12-4 and later
Other versions: affected
cert-manager operator for Red Hat OpenShift 1.16
package cert-manager/jetstack-cert-manager-rhel9
unaffected sha256:330e8b5ab4841a21f8f5f23cc7fb192197872f11639b12bf4b1e70831f636323 and later
Other versions: affected
Compliance Operator 1
package compliance/openshift-compliance-openscap-rhel8
unaffected sha256:c953e9f9abf9cf25bf65bb3ffdc86ccf49b3e69a1cf3fbb47b6972e421fd6628 and later
Other versions: affected
Red Hat Discovery 2
package discovery/discovery-server-rhel9
unaffected sha256:c85cfbcaf7888885e57596b7b8bde3894718cfc33326499b24961a66a62cf083 and later
Other versions: affected
Red Hat Insights proxy 1.5
package insights-proxy/insights-proxy-container-rhel9
unaffected sha256:4ca38b33efec0d2dd17a8fd822a7c18281810676ceabb0c1db90953cb91cd5ea and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.1
package openshift-sandboxed-containers/osc-cloud-api-adaptor-rhel9
unaffected sha256:24722900db1425bf0c27f6ad6f3fb7d79ff9ebc433bdab58423fa71bab76122b and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.1
package openshift-sandboxed-containers/osc-monitor-rhel9
unaffected sha256:f5e1602d72177d77f1b879c76e6f6cfbc2979c136c06ca9f03ea97ffb369b7a6 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.1
package openshift-sandboxed-containers/osc-podvm-builder-rhel9
unaffected sha256:cead623ceda4048cabaa81c371ed2a8143f5c5514276fca1d71685bd9e6d1e65 and later
Other versions: affected
Red Hat OpenShift sandboxed containers 1.1
package openshift-sandboxed-containers/osc-podvm-payload-rhel9
unaffected sha256:59fb1f7f1653361d94f7d48b42d8fe19ed3263c1c78654837c11f2135544c1ac and later
Other versions: affected

Is my server affected?

Find the installed version of pam and compare it with the fixed version of your distribution. Distributions often fix a CVE in their own package version, so the version number of the upstream project can mislead.

Debian, Ubuntu

dpkg -l | grep -i pam
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2025-8941 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2025-8941

RHEL, Rocky, Alma, Fedora

rpm -q pam
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2025-8941

Alpine

apk list --installed | grep -i pam

With Trivy, on the host and for a container image; it prints the installed and the fixed version when a package is affected:

trivy rootfs --scanners vuln / | grep CVE-2025-8941
trivy image --scanners vuln IMAGE | grep CVE-2025-8941

Patchbrief matches the package lists of your Linux servers and containers every day against the Trivy vulnerability database, which covers the packages of Linux distributions and language packages (npm, PyPI, Go, Maven and others), and sends one digest with the command that fixes each problem. Install the agent.

References

Advisories

7 more

Source: the record CVE-2025-8941 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.