CVE-2025-8941 Linux-pam: incomplete fix for cve-2025-6020
Local attackers can exploit symlink attacks and race conditions in the pam_namespace module to elevate privileges to root.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-8941?
CVE-2025-8941 is a high-severity vulnerability in Red Hat Compliance Operator 1, published on 13 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-22
Which versions are affected by CVE-2025-8941?
Linux distribution packages (40)
pam Red Hat:rhel_aus:8.2::baseos | All versions | 0:1.3.1-8.el8_2.2 |
pam-debuginfo Red Hat:rhel_aus:8.2::baseos | All versions | 0:1.3.1-8.el8_2.2 |
pam-debugsource Red Hat:rhel_aus:8.2::baseos | All versions | 0:1.3.1-8.el8_2.2 |
pam-devel Red Hat:rhel_aus:8.2::baseos | All versions | 0:1.3.1-8.el8_2.2 |
pam Red Hat:rhel_aus:8.4::baseos | All versions | 0:1.3.1-14.el8_4.2 |
pam-debuginfo Red Hat:rhel_aus:8.4::baseos | All versions | 0:1.3.1-14.el8_4.2 |
pam-debugsource Red Hat:rhel_aus:8.4::baseos | All versions | 0:1.3.1-14.el8_4.2 |
pam-devel Red Hat:rhel_aus:8.4::baseos | All versions | 0:1.3.1-14.el8_4.2 |
pam Red Hat:rhel_aus:8.6::baseos | All versions | 0:1.3.1-16.el8_6.3 |
pam-debuginfo Red Hat:rhel_aus:8.6::baseos | All versions | 0:1.3.1-16.el8_6.3 |
pam-debugsource Red Hat:rhel_aus:8.6::baseos | All versions | 0:1.3.1-16.el8_6.3 |
pam-devel Red Hat:rhel_aus:8.6::baseos | All versions | 0:1.3.1-16.el8_6.3 |
pam Red Hat:rhel_e4s:8.6::baseos | All versions | 0:1.3.1-16.el8_6.3 |
pam-debuginfo Red Hat:rhel_e4s:8.6::baseos | All versions | 0:1.3.1-16.el8_6.3 |
pam-debugsource Red Hat:rhel_e4s:8.6::baseos | All versions | 0:1.3.1-16.el8_6.3 |
pam-devel Red Hat:rhel_e4s:8.6::baseos | All versions | 0:1.3.1-16.el8_6.3 |
pam Red Hat:rhel_e4s:8.8::baseos | All versions | 0:1.3.1-26.el8_8.2 |
pam-debuginfo Red Hat:rhel_e4s:8.8::baseos | All versions | 0:1.3.1-26.el8_8.2 |
pam-debugsource Red Hat:rhel_e4s:8.8::baseos | All versions | 0:1.3.1-26.el8_8.2 |
pam-devel Red Hat:rhel_e4s:8.8::baseos | All versions | 0:1.3.1-26.el8_8.2 |
pam-debuginfo Red Hat:rhel_e4s:9.0::appstream | All versions | 0:1.5.1-9.el9_0.3 |
pam-debugsource Red Hat:rhel_e4s:9.0::appstream | All versions | 0:1.5.1-9.el9_0.3 |
pam-devel Red Hat:rhel_e4s:9.0::appstream | All versions | 0:1.5.1-9.el9_0.3 |
pam-docs Red Hat:rhel_e4s:9.0::appstream | All versions | 0:1.5.1-9.el9_0.3 |
pam Red Hat:rhel_e4s:9.0::baseos | All versions | 0:1.5.1-9.el9_0.3 |
pam-debuginfo Red Hat:rhel_e4s:9.0::baseos | All versions | 0:1.5.1-9.el9_0.3 |
pam-debugsource Red Hat:rhel_e4s:9.0::baseos | All versions | 0:1.5.1-9.el9_0.3 |
pam-debuginfo Red Hat:rhel_e4s:9.2::appstream | All versions | 0:1.5.1-15.el9_2.2 |
pam-debugsource Red Hat:rhel_e4s:9.2::appstream | All versions | 0:1.5.1-15.el9_2.2 |
pam-devel Red Hat:rhel_e4s:9.2::appstream | All versions | 0:1.5.1-15.el9_2.2 |
pam-docs Red Hat:rhel_e4s:9.2::appstream | All versions | 0:1.5.1-15.el9_2.2 |
pam Red Hat:rhel_e4s:9.2::baseos | All versions | 0:1.5.1-15.el9_2.2 |
pam-debuginfo Red Hat:rhel_e4s:9.2::baseos | All versions | 0:1.5.1-15.el9_2.2 |
pam-debugsource Red Hat:rhel_e4s:9.2::baseos | All versions | 0:1.5.1-15.el9_2.2 |
pam Red Hat:rhel_els:7 | All versions | 0:1.1.8-23.el7_9.2 |
pam-debuginfo Red Hat:rhel_els:7 | All versions | 0:1.1.8-23.el7_9.2 |
pam-devel Red Hat:rhel_els:7 | All versions | 0:1.1.8-23.el7_9.2 |
pam-debuginfo Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.5.1-24.el9_4.1 |
pam-debugsource Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.5.1-24.el9_4.1 |
pam-devel Red Hat:rhel_eus:9.4::appstream | All versions | 0:1.5.1-24.el9_4.1 |
How do I fix CVE-2025-8941?
Apply the vendor's patch.
Is CVE-2025-8941 being exploited?
There is no known exploitation of CVE-2025-8941 in the wild and no public exploit code.
Sources
Also known as CLSA-2025-1767001153, DEBIAN-CVE-2025-8941, GHSA-hqqx-rjqh-53c2, RHSA-2025:15100, RHSA-2025:15101, RHSA-2025:15102 and 6 more.