{"id":"UBUNTU-CVE-2025-6020","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.","modified":"2026-08-31T17:15:34.848255103Z","published":"2025-06-17T10:00:00Z","related":["USN-7580-1"],"upstream":["CVE-2025-6020"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-6020"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-6020"},{"type":"REPORT","url":"https://www.openwall.com/lists/oss-security/2025/06/17/1"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-7580-1"}],"affected":[{"package":{"name":"pam","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/pam?arch=source&distro=esm-infra-legacy%2Ftrusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.3-8ubuntu3","1.1.3-10ubuntu1","1.1.3-11ubuntu1","1.1.8-1ubuntu1","1.1.8-1ubuntu2","1.1.8-1ubuntu2.1","1.1.8-1ubuntu2.2","1.1.8-1ubuntu2.2+esm1","1.1.8-1ubuntu2.2+esm3","1.1.8-1ubuntu2.2+esm4"],"ecosystem_specific":{"binaries":[{"binary_name":"libpam-cracklib","binary_version":"1.1.8-1ubuntu2.2+esm4"},{"binary_version":"1.1.8-1ubuntu2.2+esm4","binary_name":"libpam-modules"},{"binary_name":"libpam-modules-bin","binary_version":"1.1.8-1ubuntu2.2+esm4"},{"binary_name":"libpam-runtime","binary_version":"1.1.8-1ubuntu2.2+esm4"},{"binary_name":"libpam0g","binary_version":"1.1.8-1ubuntu2.2+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6020.json"}},{"package":{"name":"pam","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/pam?arch=source&distro=esm-infra%2Fxenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.8-3.1ubuntu3","1.1.8-3.2ubuntu2","1.1.8-3.2ubuntu2.1","1.1.8-3.2ubuntu2.3","1.1.8-3.2ubuntu2.3+esm1","1.1.8-3.2ubuntu2.3+esm2","1.1.8-3.2ubuntu2.3+esm4","1.1.8-3.2ubuntu2.3+esm5"],"ecosystem_specific":{"binaries":[{"binary_name":"libpam-cracklib","binary_version":"1.1.8-3.2ubuntu2.3+esm5"},{"binary_name":"libpam-modules","binary_version":"1.1.8-3.2ubuntu2.3+esm5"},{"binary_name":"libpam-modules-bin","binary_version":"1.1.8-3.2ubuntu2.3+esm5"},{"binary_name":"libpam-runtime","binary_version":"1.1.8-3.2ubuntu2.3+esm5"},{"binary_name":"libpam0g","binary_version":"1.1.8-3.2ubuntu2.3+esm5"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6020.json"}},{"package":{"name":"pam","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/pam?arch=source&distro=esm-infra%2Fbionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.8-3.2ubuntu3","1.1.8-3.2ubuntu4","1.1.8-3.6ubuntu1","1.1.8-3.6ubuntu2","1.1.8-3.6ubuntu2.18.04.1","1.1.8-3.6ubuntu2.18.04.2","1.1.8-3.6ubuntu2.18.04.3","1.1.8-3.6ubuntu2.18.04.4","1.1.8-3.6ubuntu2.18.04.6","1.1.8-3.6ubuntu2.18.04.6+esm1","1.1.8-3.6ubuntu2.18.04.6+esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.1.8-3.6ubuntu2.18.04.6+esm2","binary_name":"libpam-cracklib"},{"binary_version":"1.1.8-3.6ubuntu2.18.04.6+esm2","binary_name":"libpam-modules"},{"binary_name":"libpam-modules-bin","binary_version":"1.1.8-3.6ubuntu2.18.04.6+esm2"},{"binary_name":"libpam-runtime","binary_version":"1.1.8-3.6ubuntu2.18.04.6+esm2"},{"binary_version":"1.1.8-3.6ubuntu2.18.04.6+esm2","binary_name":"libpam0g"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6020.json"}},{"package":{"name":"pam","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/pam?arch=source&distro=esm-infra%2Ffocal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.3.1-5ubuntu1","1.3.1-5ubuntu3","1.3.1-5ubuntu4","1.3.1-5ubuntu4.1","1.3.1-5ubuntu4.2","1.3.1-5ubuntu4.3","1.3.1-5ubuntu4.4","1.3.1-5ubuntu4.6","1.3.1-5ubuntu4.7","1.3.1-5ubuntu4.7+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.3.1-5ubuntu4.7+esm1","binary_name":"libpam-cracklib"},{"binary_name":"libpam-modules","binary_version":"1.3.1-5ubuntu4.7+esm1"},{"binary_name":"libpam-modules-bin","binary_version":"1.3.1-5ubuntu4.7+esm1"},{"binary_name":"libpam-runtime","binary_version":"1.3.1-5ubuntu4.7+esm1"},{"binary_name":"libpam0g","binary_version":"1.3.1-5ubuntu4.7+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6020.json"}},{"package":{"name":"pam","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pam?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.0-11ubuntu2.6"}]}],"versions":["1.3.1-5ubuntu11","1.4.0-10ubuntu1","1.4.0-10ubuntu2","1.4.0-11ubuntu1","1.4.0-11ubuntu2","1.4.0-11ubuntu2.1","1.4.0-11ubuntu2.3","1.4.0-11ubuntu2.4","1.4.0-11ubuntu2.5"],"ecosystem_specific":{"binaries":[{"binary_name":"libpam-cracklib","binary_version":"1.4.0-11ubuntu2.6"},{"binary_version":"1.4.0-11ubuntu2.6","binary_name":"libpam-modules"},{"binary_name":"libpam-modules-bin","binary_version":"1.4.0-11ubuntu2.6"},{"binary_name":"libpam-runtime","binary_version":"1.4.0-11ubuntu2.6"},{"binary_name":"libpam0g","binary_version":"1.4.0-11ubuntu2.6"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6020.json"}},{"package":{"name":"pam","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pam?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.3-5ubuntu5.4"}]}],"versions":["1.5.2-6ubuntu1","1.5.2-9.1ubuntu1","1.5.2-9.1ubuntu2","1.5.2-9.1ubuntu3","1.5.3-5ubuntu3","1.5.3-5ubuntu4","1.5.3-5ubuntu5","1.5.3-5ubuntu5.1"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_name":"libpam-modules","binary_version":"1.5.3-5ubuntu5.4"},{"binary_name":"libpam-modules-bin","binary_version":"1.5.3-5ubuntu5.4"},{"binary_name":"libpam-runtime","binary_version":"1.5.3-5ubuntu5.4"},{"binary_name":"libpam0g","binary_version":"1.5.3-5ubuntu5.4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6020.json"}},{"package":{"name":"pam","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/pam?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.5.3-7ubuntu6"}]}],"versions":["1.5.3-7ubuntu4","1.5.3-7ubuntu5"],"ecosystem_specific":{"binaries":[{"binary_name":"libpam-modules","binary_version":"1.5.3-7ubuntu6"},{"binary_version":"1.5.3-7ubuntu6","binary_name":"libpam-modules-bin"},{"binary_name":"libpam-runtime","binary_version":"1.5.3-7ubuntu6"},{"binary_version":"1.5.3-7ubuntu6","binary_name":"libpam0g"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-6020.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}