{"id":"CVE-2025-6020","summary":"Linux-pam: linux-pam directory traversal","details":"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.","aliases":["GHSA-f9p8-gjr4-j9gx"],"modified":"2026-11-17T07:02:55.159266933Z","published":"2025-06-17T12:44:08.646Z","related":["ALSA-2025:10027","ALSA-2025:14557","ALSA-2025:15099","ALSA-2025:20181","ALSA-2025:9526","SUSE-SU-2025:02013-1","SUSE-SU-2025:20427-1","SUSE-SU-2025:20441-1","openSUSE-SU-2025:15256-1"],"database_specific":{"cna_assigner":"redhat","cwe_ids":["CWE-22"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6020.json","unresolved_ranges":[{"extracted_events":[{"range":[{"fixed":"0:1.6.1-8.el10"},{"fixed":"0:1.6.1-8.el10_0"},{"fixed":"0:1.1.8-23.el7_9.1"},{"fixed":"0:1.3.1-37.el8_10"},{"fixed":"0:1.3.1-38.el8_10"},{"fixed":"0:1.3.1-8.el8_2.1"},{"fixed":"0:1.3.1-14.el8_4.1"},{"fixed":"0:1.3.1-16.el8_6.2"},{"fixed":"0:1.3.1-16.el8_6.2"},{"fixed":"0:1.3.1-16.el8_6.2"},{"fixed":"0:1.3.1-26.el8_8.1"},{"fixed":"0:1.3.1-26.el8_8.1"},{"fixed":"0:1.5.1-26.el9_6"},{"fixed":"0:1.5.1-25.el9_6"},{"fixed":"0:1.5.1-26.el9_6"},{"fixed":"0:1.5.1-25.el9_6"},{"fixed":"0:1.5.1-9.el9_0.2"},{"fixed":"0:1.5.1-15.el9_2.1"},{"fixed":"0:1.5.1-24.el9_4"},{"fixed":"1.11-19"},{"fixed":"1.11-8"},{"fixed":"1.12-4"},{"fixed":"7.13.5-4.1752066672"},{"fixed":"7.13.5-4.1752065732"},{"fixed":"7.13.5-4.1752065732"},{"fixed":"7.13.5-3.1752065737"},{"fixed":"7.13.5-4.1752065731"},{"fixed":"7.13.5-25"},{"fixed":"7.13.5-4.1752065736"},{"fixed":"7.13.5-2.1752065733"},{"fixed":"7.13.5-4.1752065755"},{"fixed":"1.36.0-11"},{"fixed":"1.36.0-11"},{"fixed":"1.36.0-11"},{"fixed":"1.36.0-10"},{"fixed":"1.36.0-10"},{"fixed":"1.36.0-4"},{"fixed":"1.36.0-9"},{"fixed":"1.36.0-12"},{"fixed":"1.36.0-18"},{"fixed":"1.36.0-11"},{"fixed":"1.36.0-7"},{"fixed":"v1.16.5-1760515757"},{"fixed":"1.8.0"},{"fixed":"2.0.0-1752592913"},{"fixed":"2.2.1-1758555934"},{"fixed":"1.5.7-1759331989"},{"fixed":"1.10.2-1757422110"},{"fixed":"1.10.2-1757421804"},{"fixed":"1.10.2-1757421879"},{"fixed":"1.10.2-1757422401"}],"source":"AFFECTED_FIELD","strategy":"InverseAffectedRanges"}]}]},"references":[{"type":"WEB","url":"http://www.openwall.com/lists/oss-security/2025/06/17/1"},{"type":"WEB","url":"https://access.redhat.com/downloads/content/package-browser/"},{"type":"WEB","url":"https://catalog.redhat.com/software/containers/"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-577017.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00021.html"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10024"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10027"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10180"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10354"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10357"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10358"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10359"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10361"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10362"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10735"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:10823"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:11386"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:11487"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:14557"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:15099"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:15709"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:15827"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:15828"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:16524"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:17181"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:18219"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:20181"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:21885"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:22019"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2025:9526"},{"type":"ADVISORY","url":"https://access.redhat.com/errata/RHSA-2026:0934"},{"type":"ADVISORY","url":"https://access.redhat.com/security/cve/CVE-2025-6020"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/6xxx/CVE-2025-6020.json"},{"type":"ADVISORY","url":"https://github.com/linux-pam/linux-pam/security/advisories/GHSA-f9p8-gjr4-j9gx"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6020"},{"type":"REPORT","url":"https://bugzilla.redhat.com/show_bug.cgi?id=2372512"},{"type":"PACKAGE","url":"https://github.com/linux-pam/linux-pam"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/linux-pam/linux-pam","events":[{"introduced":"0"},{"fixed":"693c4f75b10b25e09f70fe0b22f41bdcf9a48968"}],"database_specific":{"extracted_events":[{"strategy":"StandardRange","range":[{"introduced":"0"},{"fixed":"1.7.1"}],"source":"AFFECTED_FIELD"}]}}],"versions":["v1.7.0","v1.6.1","v1.6.0","v1.5.3","v1.5.2","v1.5.1","v1.5.0","v1.4.0","v1.3.1","Linux-PAM-1.3.0","Linux-PAM-1_2_1","Linux-PAM-1_2_0","Linux-PAM-1_1_8","Linux-PAM-1_1_7","v1.1.6","Linux-PAM-1_1_5","v1.1.4","Linux-PAM-1_1_4","Linux-PAM-1_1-branch","Linux-PAM-1_1_3","Linux-PAM-1_1_2","Linux-PAM-1_1_1","Linux-PAM-1_1_0","Linux-PAM-1_0_92","Linux-PAM-1_0_91","Linux-PAM-1_0_90","Linux-PAM-1_0_0","Linux-PAM-0_99_10_0","pam_unix_refactor","Linux-PAM-0_99_9_0","Linux-PAM-0_99_8_1","Linux-PAM-0_99_8_0","Linux-PAM-0_99_7_1","Linux-PAM-0_99_7_0","Linux-PAM-0_99_6_3","Linux-PAM-0_99_6_2","Linux-PAM-0_99_6_1","Linux-PAM-0_99_6_0","Linux-PAM-0_99_5_0","Linux-PAM-0_99_4_0","Linux-PAM-0_99_3_0","Linux-PAM-0_99_2_1","Linux-PAM-0_99_2_0","Linux-PAM-0_99_1_0","help","before_automake","Linux-PAM-0-80","Linux-PAM-0-79","Linux-PAM-0-78","Linux-PAM-0-78-Beta1","Linux-PAM-0-77","Linux-PAM-0-76","Linux-PAM-0-75","Linux-PAM-0-74","Linux-PAM-0-73"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-6020.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}