Wiz Agents & Workflows are here

CVE-2017-20148
Linux Gentoo vulnerability analysis and mitigation

Overview

CVE-2017-20148 affects the ebuild package through logcheck-1.3.23.ebuild for Logcheck on Gentoo. The vulnerability was discovered and disclosed on September 20, 2022. The issue exists in the package's post-installation phase where insecure recursive chown calls could lead to privilege escalation (CVE Details, Gentoo Security).

Technical details

The vulnerability exists in the pkg_postinst phase of the Logcheck ebuilds, which recursively executes chown on the /etc/logcheck and /var/lib/logcheck directories. While the first installation is safe, the logcheck user can subsequently place a hard link in either of these directories pointing to sensitive files (e.g., /root/.bashrc). During subsequent installations, the ebuild's chown call will follow the link and transfer ownership of the linked file to the logcheck user (Gentoo Bug).

Impact

A local attacker with access to the logcheck user could exploit this vulnerability to escalate privileges to root level, potentially gaining complete system access (Gentoo Security).

Mitigation and workarounds

Gentoo has discontinued support for Logcheck due to this vulnerability. The recommended mitigation is to completely remove the package using the command: emerge --ask --depclean "app-admin/logcheck" (Gentoo Security).

Additional resources


SourceThis report was generated using AI

Related Linux Gentoo vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-24061CRITICAL9.8
  • NixOSNixOS
  • inetutils
YesYesJan 21, 2026
CVE-2025-65018HIGH7.1
  • NixOSNixOS
  • java-11-openjdk-demo
NoYesNov 25, 2025
CVE-2026-27631LOW2.7
  • NixOSNixOS
  • libexiv2-devel
NoYesMar 02, 2026
CVE-2026-27596LOW2.7
  • NixOSNixOS
  • exiv2-doc
NoYesMar 02, 2026
CVE-2026-25884LOW2.7
  • NixOSNixOS
  • exiv2-libs-debuginfo
NoYesMar 02, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management