cve.bz

CVE-2021-3570 Out-of-bounds Write

8.8 highEPSS 3.0%Fix available

High (8.8). EPSS 3.0% estimated probability of exploitation activity in the next 30 days.

On this page
A flaw was found in the ptp4l program of the linuxptp package. A missing length check when forwarding a PTP message between ports allows a remote attacker to cause an information leak, crash, or potentially remote code execution. The highest threat from this vulnerability is to data confidentiality and integrity as well as system availability. 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.

Severity

CVSS 3.1

8.8 high
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS
3.0% (unchanged from 3.0% a week ago; 3.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 88th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-787 Out-of-bounds Write
CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-3570 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-3570?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-3570?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-3570 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linuxptp_project:linuxptpbefore 1.5.1
linuxptp_project:linuxptpfrom 1.6.0 before 1.6.1
linuxptp_project:linuxptpfrom 1.7.0 before 1.7.1
linuxptp_project:linuxptpfrom 1.8.0 before 1.8.1
linuxptp_project:linuxptpfrom 1.9.0 before 1.9.3
linuxptp_project:linuxptpfrom 2.0.0 before 2.0.1
linuxptp_project:linuxptpfrom 3.0.0 before 3.1.1
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0
redhat:enterprise_linux8.0
redhat:enterprise_linux_aus8.2
redhat:enterprise_linux_aus8.4
redhat:enterprise_linux_eus8.1
redhat:enterprise_linux_eus8.2
redhat:enterprise_linux_tus8.2
redhat:enterprise_linux_tus8.4
fedoraproject:fedora33
fedoraproject:fedora34
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9linuxptp1.8-1+deb9u1DLA-2723-1
Debian10linuxptp1.9.2-1+deb10u1DSA-4938-1
Debian12, 13, 14linuxptp3.1-2.1DEBIAN-CVE-2021-3570
Ubuntu18.04:LTSlinuxptp1.8-1ubuntu0.1UBUNTU-CVE-2021-3570 USN-6097-1
Ubuntu20.04:LTSlinuxptp1.9.2-1ubuntu0.1UBUNTU-CVE-2021-3570 USN-6097-1
UbuntuPro:16.04:LTSlinuxptp1.6-1ubuntu0.1~esm1UBUNTU-CVE-2021-3570 USN-6097-1
Red Hatenterprise_linux:7::client, enterprise_linux:7::server, enterprise_linux:7::workstationlinuxptp, linuxptp-debuginfo0:2.0-2.el7_9.1RHSA-2021:2658
Red Hatenterprise_linux:8::appstreamlinuxptp, linuxptp-debuginfo, linuxptp-debugsource0:2.0-5.el8_4.1RHSA-2021:2660
Red Hatrhel_eus:8.1::appstreamlinuxptp, linuxptp-debuginfo, linuxptp-debugsource0:2.0-4.el8_1.1RHSA-2021:2659
Red Hatrhel_eus:8.2::appstreamlinuxptp, linuxptp-debuginfo, linuxptp-debugsource0:2.0-4.el8_2.1RHSA-2021:2657
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 11 morelinuxptp1.8+git65.g303b08c-3.3.1SUSE-SU-2021:2472-1
SUSEHPE Helion OpenStack 8, Linux Enterprise Server 12 SP2-BCL, Linux Enterprise Server 12 SP3-BCL and 8 morelinuxptp1.4-15.3.1SUSE-SU-2021:2443-1
SUSELinux Enterprise Module for Server Applications 15 SP3linuxptp3.1.1-3.3.1SUSE-SU-2021:3202-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5linuxptp1.8+git65.g303b08c-3.3.1SUSE-SU-2021:2545-1
openSUSELeap 15.2linuxptp1.8+git65.g303b08c-lp152.4.3.1openSUSE-SU-2021:1102-1
openSUSELeap 15.3linuxptp3.1.1-3.3.1openSUSE-SU-2021:3202-1
Rocky Linux8linuxptp0:2.0-5.el8_4.1RLSA-2021:2660

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Only attackers that can connect to the `ptp4l` service can exploit this vulnerability. If `ptp4l` is bound only to a private network interface, or is protected by firewall rules to block incoming PTP management messages, the attack surface is correspondingly limited. When using the UDP IPv4 or IPv6 network transport, the following tcpdump filter can be used to detect PTP management messages:

```

(port 319 or port 320) and udp[8]&0xf=0xd

```

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7linuxptp-0:2.0-2.el7_9.1Fixed 2021-07-06RHSA-2021:2658
Red Hat Enterprise Linux 8linuxptp-0:2.0-5.el8_4.1Fixed 2021-07-06RHSA-2021:2660
Red Hat Enterprise Linux 8.1 Extended Update Supportlinuxptp-0:2.0-4.el8_1.1Fixed 2021-07-06RHSA-2021:2659
Red Hat Enterprise Linux 8.2 Extended Update Supportlinuxptp-0:2.0-4.el8_2.1Fixed 2021-07-06RHSA-2021:2657
Red Hat Enterprise Linux 6linuxptpOut of support scope
Red Hat Enterprise Linux 9linuxptpNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-3570.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-119 (12).

References

Check your stackJSON