title: Junos OS: MX Series: MPC3E memory leak with PTP configuration
description:
A Missing Release of Memory after Effective Lifetime vulnerability in the Packet Forwarding Engine (PFE) of Juniper Networks Junos OS on MX Series allows an adjacent, unauthenticated attacker to cause a Denial of Service (DoS).
If an MX Series device receives PTP packets on an MPC3E that doesn't support PTP this causes a memory leak which will result in unpredictable behavior and ultimately in an MPC crash and restart.
To monitor for this issue, please use the following FPC vty level commands:
show heap
shows an increase in "LAN buffer" utilization and
show clksync ptp nbr-upd-info
shows non-zero "Pending PFEs" counter.
This issue affects Juniper Networks Junos OS on MX Series with MPC3E:
*  All versions earlier than 20.4R3-S3;
*  21.1 versions earlier than 21.1R3-S4;
*  21.2 versions earlier than 21.2R3;
*  21.3 versions earlier than 21.3R2-S1, 21.3R3;
*  21.4 versions earlier than 21.4R2;
*  22.1 versions earlier than 22.1R2.
problem types: CWE-401 Missing Release of Memory after Effective Lifetime
affected:
{
defaultStatus: unaffected
platforms: MX Series
product: Junos OS
vendor: Juniper Networks
versions:
lessThan: 20.4R3-S3, status: affected, version: 0, versionType: semver
lessThan: 21.1R3-S4, status: affected, version: 21.1, versionType: semver
lessThan: 21.2R3, status: affected, version: 21.2, versionType: semver
lessThan: 21.3R2-S1, 21.3R3, status: affected, version: 21.3, versionType: semver
lessThan: 21.4R2, status: affected, version: 21.4, versionType: semver
lessThan: 22.1R2, status: affected, version: 22.1, versionType: semver
}
metrics:
cvssV3_1: [
attackComplexity: LOW
attackVector: ADJACENT_NETWORK
availabilityImpact: HIGH
baseScore: 6.5
baseSeverity: MEDIUM
confidentialityImpact: NONE
integrityImpact: NONE
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
version: 3.1
]
format: CVSS
scenarios: GENERAL
exploits: Juniper SIRT is not aware of any malicious exploitation of this vulnerability.
solutions: The following software releases have been updated to resolve this specific issue: Junos OS 20.4R3-S3, 21.1R3-S4, 21.2R3, 21.3R2-S1, 21.3R3, 21.4R2, 22.1R2, 22.2R1, and all subsequent releases.
workarounds: Although not a workaround the leaked memory can be recovered by: deactivate protocol ptp; commit; activate protocol ptp; commit.