Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2025-21595 Overview
CVE-2025-21595 is a memory leak vulnerability [CWE-401] in the Packet Forwarding Engine (PFE) of Juniper Networks Junos OS and Junos OS Evolved. An adjacent, unauthenticated attacker can trigger kernel heap memory exhaustion by sending specific Address Resolution Protocol (ARP) or Neighbor Discovery Protocol (NDP) packets in an Ethernet VPN - Virtual Extensible LAN (EVPN-VXLAN) scenario. The leak eventually crashes the Flexible PIC Concentrator (FPC) and forces a restart, resulting in Denial of Service (DoS). MX Series platforms are not affected.
Critical Impact
Repeated FPC crashes disrupt packet forwarding across affected line cards, degrading availability of EVPN-VXLAN fabrics used in data center and enterprise core deployments.
Affected Products
- Juniper Junos OS: all versions before 21.2R3-S7, 21.4 before 21.4R3-S4, 22.2 before 22.2R3-S1, 22.3 before 22.3R3-S1, 22.4 before 22.4R2-S2 / 22.4R3
- Juniper Junos OS Evolved: all versions before 21.2R3-S7-EVO, 21.4-EVO before 21.4R3-S4-EVO, 22.2-EVO before 22.2R3-S1-EVO, 22.3-EVO before 22.3R3-S1-EVO, 22.4-EVO before 22.4R3-EVO
- All platforms running Junos OS or Junos OS Evolved in an EVPN-VXLAN configuration (MX Series excluded)
Discovery Timeline
- 2025-04-09 - CVE-2025-21595 published to NVD
- 2026-06-17 - Last updated in NVD database
Technical Details for CVE-2025-21595
Vulnerability Analysis
The vulnerability is a Missing Release of Memory after Effective Lifetime condition in the PFE. When specific ARP packets arrive on an IPv4 network, or specific NDP packets arrive on an IPv6 network, within an EVPN-VXLAN deployment, the PFE allocates kernel heap memory but fails to release it after the packet is processed. Because EVPN-VXLAN fabrics continuously carry ARP/NDP traffic to resolve overlay endpoints, the leak accumulates across all FPCs on the device.
Operators can observe the condition using show chassis fpc, where the Heap utilization column steadily grows across all FPCs. Once heap exhaustion is reached, the affected FPC crashes and restarts, interrupting forwarding on its interfaces until the restart completes. Repeated triggering produces a sustained DoS condition.
Root Cause
The root cause is improper lifecycle management of heap allocations in the PFE's handling of ARP (IPv4) and NDP (IPv6) control packets in EVPN-VXLAN mode. Allocation paths are entered during packet parsing or neighbor-state update, but corresponding deallocation paths are missed under the specific conditions described in Juniper advisory JSA96450, matching the classification [CWE-401].
Attack Vector
Exploitation requires only adjacent network access and no authentication or user interaction. An attacker on an adjacent Layer 2 segment of an EVPN-VXLAN fabric can send crafted ARP or NDP packets toward an affected device. The attacker does not need to achieve code execution; sustained packet injection is sufficient to drive heap growth until an FPC crashes.
No verified public exploit code is available at the time of writing. See the Juniper Security Advisory JSA96450 for the vendor's description of the triggering packet conditions.
Detection Methods for CVE-2025-21595
Indicators of Compromise
- Steadily increasing Heap utilization reported across multiple FPCs in show chassis fpc output without a corresponding configuration change or traffic growth
- Unexpected FPC crash and restart events in system logs on devices configured for EVPN-VXLAN
- Elevated volumes of ARP or NDP traffic on EVPN-VXLAN overlay interfaces from a single adjacent source
Detection Strategies
- Baseline FPC heap utilization and alert on sustained upward drift that is not explained by routing-table or MAC-table growth
- Correlate FPC restart messages with ARP/NDP packet-rate spikes on overlay interfaces to identify triggering sources
- Compare running Junos OS or Junos OS Evolved versions against the fixed releases listed in JSA96450 and flag any device still on an affected build
Monitoring Recommendations
- Collect show chassis fpc and heap utilization via SNMP or streaming telemetry (Junos Telemetry Interface) at regular intervals and store the series centrally
- Forward chassisd and FPC syslog messages to a central SIEM and alert on FPC restart, panic, or memory-related events
- Monitor ARP and NDP packet rates per VXLAN Tunnel Endpoint (VTEP) and per access port to detect anomalous bursts
How to Mitigate CVE-2025-21595
Immediate Actions Required
- Inventory Junos OS and Junos OS Evolved devices running EVPN-VXLAN and compare their versions against the fixed releases listed in JSA96450
- Schedule upgrades to a fixed release on affected devices, prioritizing data center spine and leaf nodes that terminate VXLAN tunnels
- Restrict Layer 2 adjacency to EVPN-VXLAN access ports using port security, storm control, and tenant isolation to limit attacker reach
Patch Information
Juniper has released fixed versions in Junos OS 21.2R3-S7, 21.4R3-S4, 22.2R3-S1, 22.3R3-S1, 22.4R2-S2, 22.4R3, and in Junos OS Evolved 21.2R3-S7-EVO, 21.4R3-S4-EVO, 22.2R3-S1-EVO, 22.3R3-S1-EVO, 22.4R3-EVO, and all later releases. Refer to the Juniper Security Advisory JSA96450 for the authoritative upgrade matrix.
Workarounds
- No vendor-published workaround eliminates the vulnerability; upgrading to a fixed release is required
- As an interim measure, apply ARP and NDP rate limiting on access-facing interfaces of EVPN-VXLAN leaf devices to slow heap growth
- Monitor FPC heap utilization and proactively perform a graceful FPC restart during a maintenance window if growth approaches exhaustion
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

