title: Junos OS and Junos OS Evolved: A link flap causes patroot memory leak which leads to rpd crash
description:
A Missing Release of Memory after Effective Lifetime vulnerability in Routing Protocol Daemon (RPD) of Juniper Networks Junos OS and Junos OS Evolved allows an unauthenticated, adjacent attacker to cause an rpd crash, leading to Denial of Service (DoS).
On all Junos OS and Junos OS Evolved platforms, when traffic engineering is enabled for OSPF or ISIS, and a link flaps, a patroot memory leak is observed. This memory leak, over time, will lead to an rpd crash and restart.
The memory usage can be monitored using the below command.
user@host> show task memory detail | match patroot
This issue affects:
Juniper Networks Junos OS
*  All versions earlier than 21.2R3-S3;
*  21.3 versions earlier than 21.3R3-S5;
*  21.4 versions earlier than 21.4R3-S3;
*  22.1 versions earlier than 22.1R3;
*  22.2 versions earlier than 22.2R3.
Juniper Networks Junos OS Evolved
*  All versions earlier than 21.3R3-S5-EVO;
*  21.4 versions earlier than 21.4R3-EVO;
*  22.1 versions earlier than 22.1R3-EVO;
*  22.2 versions earlier than 22.2R3-EVO.
problem types: CWE-401 Missing Release of Memory after Effective Lifetime
affected:
{
defaultStatus: unaffected
product: Junos OS
vendor: Juniper Networks
versions:
lessThan: 21.2R3-S3, status: affected, version: 0, versionType: semver
lessThan: 21.3R3-S5, status: affected, version: 21.3, versionType: semver
lessThan: 21.4R3-S3, status: affected, version: 21.4, versionType: semver
lessThan: 22.1R3, status: affected, version: 22.1, versionType: semver
lessThan: 22.2R3, status: affected, version: 22.2, versionType: semver
}
{
defaultStatus: unaffected
product: Junos OS Evolved
vendor: Juniper Networks
versions:
lessThan: 21.3R3-S5-EVO, status: affected, version: 0, versionType: semver
lessThan: 21.4R3-EVO, status: affected, version: 21.4, versionType: semver
lessThan: 22.1R3-EVO, status: affected, version: 22.1, versionType: semver
lessThan: 22.2R3-EVO, status: affected, version: 22.2, 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: 21.2R3-S3, 21.3R3-S5, 21.4R3-S3, 22.1R3, 22.2R3, 22.3R1 and all subsequent releases.
Junos OS Evolved: 21.3R3-S5-EVO, 21.4R3-EVO, 22.1R3-EVO, 22.2R3-EVO, 22.3R1-EVO, and all subsequent releases.
workarounds: There are no known workarounds for this issue.