From 21d3be51b8d94d57b9a3ac3d489802768695072c Mon Sep 17 00:00:00 2001 From: Carlos Polop Date: Tue, 20 Jan 2026 17:58:01 +0100 Subject: [PATCH] Avoid false positives for CVE-2021-3560 on Ubuntu --- .../linpeas_parts/1_system_information/15_CVE_2021_3560.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linPEAS/builder/linpeas_parts/1_system_information/15_CVE_2021_3560.sh b/linPEAS/builder/linpeas_parts/1_system_information/15_CVE_2021_3560.sh index 12ad479..5fd0ed3 100644 --- a/linPEAS/builder/linpeas_parts/1_system_information/15_CVE_2021_3560.sh +++ b/linPEAS/builder/linpeas_parts/1_system_information/15_CVE_2021_3560.sh @@ -30,10 +30,9 @@ # Fat linpeas: 0 # Small linpeas: 0 -if apt list --installed 2>/dev/null | grep -q 'polkit.*0\.105-26' || \ +if apt list --installed 2>/dev/null | grep -E 'polkit.*0\.105-26' | grep -qEv 'ubuntu1\.[1-9]' || \ yum list installed 2>/dev/null | grep -q 'polkit.*\(0\.117-2\|0\.115-6\)' || \ rpm -qa 2>/dev/null | grep -q 'polkit.*\(0\.117-2\|0\.115-6\)'; then echo "Vulnerable to CVE-2021-3560" | sed -${E} "s,.*,${SED_RED_YELLOW}," echo "" fi -