title: Junos OS and Junos OS Evolved: If malformed IPv6 router advertisements are received, memory corruption will occur which causes an rpd crash
description: An Improper Input Validation vulnerability in the kernel of Juniper Networks Junos OS and Junos OS Evolved allows an unauthenticated, adjacent attacker to cause a Denial of Service (DoS). If the receipt of router advertisements is enabled on an interface and a specifically malformed RA packet is received, memory corruption will happen which leads to an rpd crash. This issue affects: Juniper Networks Junos OS 20.3 versions prior to 20.3R3-S5; 20.4 versions prior to 20.4R3-S3; 21.1 versions prior to 21.1R3-S4; 21.2 versions prior to 21.2R3; 21.3 versions prior to 21.3R3; 21.4 versions prior to 21.4R2; 22.1 versions prior to 22.1R2. Juniper Networks Junos OS Evolved 20.3-EVO version 20.3R1-EVO and later versions; 20.4-EVO versions prior to 20.4R3-S6-EVO; 21.3-EVO versions prior to 21.3R3-EVO; 21.4-EVO versions prior to 21.4R2-EVO; 22.1-EVO versions prior to 22.1R2-EVO.
problem types: CWE-20 Improper Input Validation
affected:
{
vendor: Juniper Networks
product: Junos OS
versions:
version: 20.3, status: affected, lessThan: 20.3R3-S5, versionType: custom
version: 20.4, status: affected, lessThan: 20.4R3-S3, 20.4R3-S6, versionType: custom
version: 21.1, status: affected, lessThan: 21.1R3-S4, versionType: custom
version: 21.2, status: affected, lessThan: 21.2R3, versionType: custom
version: 21.3, status: affected, lessThan: 21.3R3, versionType: custom
version: 21.4, status: affected, lessThan: 21.4R2, versionType: custom
version: 22.1, status: affected, lessThan: 22.1R2, versionType: custom
}
{
vendor: Juniper Networks
product: Junos OS Evolved
versions:
version: 20.3R1-EVO, status: affected, lessThan: 20.3-EVO*, versionType: custom
version: 20.4-EVO, status: affected, lessThan: 20.4R3-S6-EVO, versionType: custom
version: 21.3-EVO, status: affected, lessThan: 21.3R3-EVO, versionType: custom
version: 21.4-EVO, status: affected, lessThan: 21.4R2-EVO, versionType: custom
version: 22.1-EVO, status: affected, lessThan: 22.1R2-EVO, versionType: custom
}
metrics:
cvssV3_1: [
version: 3.1
vectorString: CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
attackVector: ADJACENT_NETWORK
attackComplexity: LOW
privilegesRequired: NONE
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: NONE
integrityImpact: NONE
availabilityImpact: HIGH
baseScore: 6.5
baseSeverity: MEDIUM
]
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 Evolved: 20.4R3-S6-EVO, 21.3R3-EVO, 21.4R2-EVO, 22.1R2-EVO, 22.2R1-EVO, and all subsequent releases.
Junos OS: 20.3R3-S5, 20.4R3-S3, 21.1R3-S4, 21.2R3, 21.3R3, 21.4R2, 22.1R2, 22.2R1, and all subsequent releases.
workarounds: If the receipt of router advertisements is not necessary (but just the solicited or unsolicited sending of RAs) then incoming RAs can be filtered and dropped by applying a firewall filter like the following:
set firewall family inet6 filter test term 1 from next-header icmp6
set firewall family inet6 filter test term 1 from icmp-type 134
set firewall family inet6 filter test term 1 then discard
set firewall family inet6 filter test term 2 then accept