CVE-2025-1390pam_cap: Fix potential configuration parsing error
The PAM module pam_cap.so of libcap configuration supports group names starting with “@”, during actual parsing, configurations not starting with “@” are incorrectly recognized as group names. This may result in nonintended users being granted an inherited capability set, potentially leading to security risks. Attackers can exploit this vulnerability to achieve local privilege escalation on systems where /etc/security/capability.conf is used to configure user inherited privileges by constructing specific usernames.
What to do
Fixed builds are available from Debian, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | libcap2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | libcap2 | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | libcap2 | Fixed | 1:2.66-5ubuntu2.2 | UBUNTU-CVE-2025-1390 |
| Ubuntu 22.04 | libcap2 | Fixed | 1:2.44-1ubuntu0.22.04.2 | UBUNTU-CVE-2025-1390 |
| Ubuntu 20.04 | libcap2 | Fixed | 1:2.32-1ubuntu0.2 | UBUNTU-CVE-2025-1390 |
| Ubuntu 18.04 | libcap2 | Fix pending | UBUNTU-CVE-2025-1390 | |
| Ubuntu 16.04 | libcap2 | Fix pending | UBUNTU-CVE-2025-1390 | |
| Ubuntu 14.04 | libcap2 | Fix pending | UBUNTU-CVE-2025-1390 | |
| Debian 14 | libcap2 | Fixed | 1:2.73-4 | DEBIAN-CVE-2025-1390 |
| Debian 13 | libcap2 | Fixed | 1:2.73-4 | DEBIAN-CVE-2025-1390 |
| Debian 12 | libcap2 | Fixed | 1:2.66-4+deb12u1 | DEBIAN-CVE-2025-1390 |
| Red Hat Enterprise Linux 10 | libcap | Not affected | ||
| Red Hat Enterprise Linux 10 | libcap-devel | Not affected | ||
| Red Hat Enterprise Linux 9 | libcap | Not affected | ||
| Red Hat Enterprise Linux 9 | libcap-devel | Not affected | ||
| Red Hat Enterprise Linux 8 | libcap | Not affected | ||
| Red Hat Enterprise Linux 8 | libcap-devel | Not affected | ||
| Red Hat Enterprise Linux 7 | compat-libcap1 | Not affected | ||
| Red Hat Enterprise Linux 7 | libcap | Not affected | ||
| Red Hat Enterprise Linux 7 | libcap-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | compat-libcap1 | Not affected | ||
| Red Hat Enterprise Linux 6 | libcap | Not affected | ||
| Red Hat Enterprise Linux 6 | libcap-devel | Not affected |
What the vendor says
As published in the CVE record by Anolis, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- OpenAnolis Anolis OS: affected: 2.73;0
Solution: https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/?id=1ad42b66c3567481cc5fa22fc1ba1556a31... https://git.kernel.org/pub/scm/libs/libcap/libcap.git/commit/
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.