CVE-2020-14367
NixOS vulnerability analysis and mitigation

Overview

CVE-2020-14367 is a security vulnerability discovered in Chrony, a versatile implementation of the Network Time Protocol (NTP). The vulnerability was discovered on August 5, 2020, and publicly disclosed on August 19, 2020. The flaw affects Chrony version 3.5 and earlier versions, where the software incorrectly handles symbolic links during PID file creation (Openwall OSS).

Technical details

The vulnerability occurs in chronyd's main() function where the call to writepidfile() is made with full root privileges, while the privilege drop logic is only performed later via SYSDropRoot(). The pidfile is created using fopen() without proper symlink checking. In the default setup, chronyd runs under the 'chrony' user and group, with the PID file located at /run/chrony/chronyd.pid (default since chrony 3.4) (Openwall OSS).

Impact

The vulnerability could allow an attacker with privileged access to create a symlink with the default PID file name pointing to any destination file in the system. This could result in data loss, denial of service, or the exposure of sensitive information through file overwriting with root privileges (Gentoo Security, Ubuntu Security).

Mitigation and workarounds

The issue was fixed in Chrony version 3.5.1. On systems using recent systemd versions, the vulnerability's impact is reduced when chronyd is started via the systemd service unit, as it contains the ProtectSystem=full directive that restricts write permissions for system file locations. Users are advised to upgrade to Chrony version 3.5.1 or later (Openwall OSS, Fedora Update).

Additional resources


SourceThis report was generated using AI

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