title: Junos OS: RPD process crashes due to specific BGP peer restarts condition.
description: On Junos devices with the BGP graceful restart helper mode enabled or the BGP graceful restart mechanism enabled, a BGP session restart on a remote peer that has the graceful restart mechanism enabled may cause the local routing protocol daemon (RPD) process to crash and restart. By simulating a specific BGP session restart, an attacker can repeatedly crash the RPD process causing prolonged denial of service (DoS). Graceful restart helper mode for BGP is enabled by default. No other Juniper Networks products or platforms are affected by this issue. Affected releases are Juniper Networks Junos OS: 16.1 versions prior to 16.1R7; 16.1X65 versions prior to 16.1X65-D48; 16.2 versions prior to 16.2R2-S8; 17.1 versions prior to 17.1R2-S7, 17.1R3; 17.2 versions prior to 17.2R1-S7, 17.2R3; 17.2X75 versions prior to 17.2X75-D92, 17.2X75-D102, 17.2X75-D110; 17.3 versions prior to 17.3R2-S2, 17.3R3; 17.4 versions prior to 17.4R1-S4, 17.4R2; 18.1 versions prior to 18.1R2. Junos OS releases prior to 16.1R1 are not affected.
problem types: CWE-404 Improper Resource Shutdown or Release
affected:
{
product: Junos OS
vendor: Juniper Networks
versions:
lessThan: 16.1R1, status: unaffected, version: unspecified, versionType: custom
lessThan: 16.1R7, status: affected, version: 16.1, versionType: custom
lessThan: 16.1X65-D48, status: affected, version: 16.1X65, versionType: custom
lessThan: 16.2R2-S8, status: affected, version: 16.2, versionType: custom
lessThan: 17.1R2-S7, 17.1R3, status: affected, version: 17.1, versionType: custom
lessThan: 17.2R1-S7, 17.2R3, status: affected, version: 17.2, versionType: custom
lessThan: 17.2X75-D92,17.2X75-D102, 17.2X75-D110, status: affected, version: 17.2X75, versionType: custom
lessThan: 17.3R2-S2, 17.3R3, status: affected, version: 17.3, versionType: custom
lessThan: 17.4R1-S4, 17.4R2, status: affected, version: 17.4, versionType: custom
lessThan: 18.1R2, status: affected, version: 18.1, versionType: custom
}
metrics:
cvssV3_0: [
attackComplexity: LOW
attackVector: NETWORK
availabilityImpact: HIGH
baseScore: 7.5
baseSeverity: HIGH
confidentialityImpact: NONE
integrityImpact: NONE
privilegesRequired: NONE
scope: UNCHANGED
userInteraction: NONE
vectorString: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
version: 3.0
]
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: 16.1R7, 16.1X65-D48, 16.2R2-S8, 17.1R2-S7, 17.1R3, 17.2R1-S7, 17.2R3, 17.2X75-D102, 17.2X75-D110, 17.2X75-D92, 17.3R2-S2, 17.3R3, 17.4R1-S4, 17.4R2, 18.1R2, 18.2R1, 18.2X75-D5,  and all subsequent releases.
workarounds: This issue can be prevented by disabling the BGP graceful restart mechanism, including graceful restart helper mode:
[protocols bgp graceful-restart disable]
Furthermore, the risk associated with this issue can be mitigated by limiting BGP sessions only from trusted peers.