CVE-2021-3570
NixOS vulnerability analysis and mitigation

Overview

A vulnerability (CVE-2021-3570) was discovered in the ptp4l program of the linuxptp package, which implements the Precision Time Protocol (PTP) for Linux. The vulnerability stems from a missing length check when forwarding PTP messages between ports. This flaw affects linuxptp versions before 3.1.1, before 2.0.1, before 1.9.3, before 1.8.1, before 1.7.1, before 1.6.1, and before 1.5.1 (NVD, Red Hat Bugzilla).

Technical details

The vulnerability occurs when ptp4l forwards PTP messages between ports. The code uses the messageLength field as the length of transmitted data but fails to validate if this value exceeds the actual length of the received message. The issue has been assigned a CVSS v3.1 base score of 8.8 (HIGH) with the vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. The vulnerability is classified as CWE-787 (Out-of-bounds Write) and CWE-119 (Improper Restriction of Operations within the Bounds of a Memory Buffer) (NVD).

Impact

The vulnerability can allow a remote attacker to cause information leaks, system crashes, or potentially achieve remote code execution. The highest threats from this vulnerability are to data confidentiality and integrity as well as system availability. On little-endian architectures, the vulnerability becomes particularly dangerous as attackers can craft management messages that cause heap memory corruption during host-to-network order conversion (Red Hat Bugzilla).

Mitigation and workarounds

The vulnerability has been fixed in multiple versions of linuxptp: version 3.1.1, 2.0.1, 1.9.3, 1.8.1, 1.7.1, 1.6.1, and 1.5.1. Various Linux distributions have released security updates, including Debian (version 1.9.2-1+deb10u1 for buster), Fedora 33 (version 3.1.1-1.fc33), and Fedora 34 (version 3.1.1-1.fc34) (Debian Security, Fedora Update).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48639HIGH7.3
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025

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