Amazon Linux 2 : libcap (ALAS-2025-2796)

medium Nessus Plugin ID 233375

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of libcap installed on the remote host is prior to 2.54-1. It is, therefore, affected by a vulnerability as referenced in the ALAS2-2025-2796 advisory.

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. (CVE-2025-1390)

Tenable has extracted the preceding description block directly from the tested product security advisory.

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update libcap' to update your system.

See Also

https://alas.aws.amazon.com/faqs.html

https://alas.aws.amazon.com/AL2/ALAS-2025-2796.html

https://alas.aws.amazon.com/cve/html/CVE-2025-1390.html

Plugin Details

Severity: Medium

ID: 233375

File Name: al2_ALAS-2025-2796.nasl

Version: 1.1

Type: local

Agent: unix

Published: 3/27/2025

Updated: 3/27/2025

Supported Sensors: Frictionless Assessment AWS, Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 5.0

CVSS v2

Risk Factor: Medium

Base Score: 5.2

Temporal Score: 3.8

Vector: CVSS2#AV:L/AC:L/Au:S/C:P/I:C/A:N

CVSS Score Source: CVE-2025-1390

CVSS v3

Risk Factor: Medium

Base Score: 6.1

Temporal Score: 5.3

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:H/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/o:amazon:linux:2, p-cpe:/a:amazon:linux:libcap, p-cpe:/a:amazon:linux:libcap-debuginfo, p-cpe:/a:amazon:linux:libcap-devel, p-cpe:/a:amazon:linux:libcap-static

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 3/13/2025

Vulnerability Publication Date: 2/18/2025

Reference Information

CVE: CVE-2025-1390

IAVA: 2025-A-0134