Vulnerability · Published Feb 18, 2025 · Assigned by Anolis

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

Medium 6.1

In plain English

A medium-severity improper access control in Anolis OS from OpenAnolis. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 7% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.1Medium
Exploit odds (30 days)0.2%top 92.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libcap21:2.66-4+deb12u1DEBIAN-CVE-2025-1390
Debian:13libcap21:2.73-4DEBIAN-CVE-2025-1390
Debian:14libcap21:2.73-4DEBIAN-CVE-2025-1390
Ubuntu:22.04:LTSlibcap21:2.44-1ubuntu0.22.04.2USN-7287-1
Ubuntu:22.04:LTSlibcap21:2.44-1ubuntu0.22.04.2UBUNTU-CVE-2025-1390
Ubuntu:24.04:LTSlibcap21:2.66-5ubuntu2.2USN-7287-1
Ubuntu:24.04:LTSlibcap21:2.66-5ubuntu2.2UBUNTU-CVE-2025-1390

Affected products (as reported)

VendorProductVersions
OpenAnolis Anolis OS 2.73;0

Weakness: CWE-284 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N

References