CVEfocus › CVE database › CVE-2025-1390

CVE-2025-1390pam_cap: Fix potential configuration parsing error

CVSS 6.1 MediumEPSS 0.3% (higher than 10% of CVEs)Published 2025-02-18Updated 2026-10-15Assigner: Anolis

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.

CWE-284

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

6Fixed
3Fix pending
14Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libcap2Not affected
vulnerable_code_not_present
Ubuntu 25.10libcap2Not affected
vulnerable_code_not_present
Ubuntu 24.04libcap2Fixed1:2.66-5ubuntu2.2UBUNTU-CVE-2025-1390
Ubuntu 22.04libcap2Fixed1:2.44-1ubuntu0.22.04.2UBUNTU-CVE-2025-1390
Ubuntu 20.04libcap2Fixed1:2.32-1ubuntu0.2UBUNTU-CVE-2025-1390
Ubuntu 18.04libcap2Fix pendingUBUNTU-CVE-2025-1390
Ubuntu 16.04libcap2Fix pendingUBUNTU-CVE-2025-1390
Ubuntu 14.04libcap2Fix pendingUBUNTU-CVE-2025-1390
Debian 14libcap2Fixed1:2.73-4DEBIAN-CVE-2025-1390
Debian 13libcap2Fixed1:2.73-4DEBIAN-CVE-2025-1390
Debian 12libcap2Fixed1:2.66-4+deb12u1DEBIAN-CVE-2025-1390
Red Hat Enterprise Linux 10libcapNot affected
Red Hat Enterprise Linux 10libcap-develNot affected
Red Hat Enterprise Linux 9libcapNot affected
Red Hat Enterprise Linux 9libcap-develNot affected
Red Hat Enterprise Linux 8libcapNot affected
Red Hat Enterprise Linux 8libcap-develNot affected
Red Hat Enterprise Linux 7compat-libcap1Not affected
Red Hat Enterprise Linux 7libcapNot affected
Red Hat Enterprise Linux 7libcap-develNot affected
Red Hat Enterprise Linux 6compat-libcap1Not affected
Red Hat Enterprise Linux 6libcapNot affected
Red Hat Enterprise Linux 6libcap-develNot 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.

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.