Skip to main content
Vulnerability Database/CVE-2024-30402

CVE-2024-30402: Juniper Junos Layer 2 Daemon DoS Vulnerability

CVE-2024-30402 is a denial of service flaw in Juniper Junos OS Layer 2 Address Learning Daemon that allows adjacent attackers to crash the l2ald process. This article covers technical details, affected versions, and mitigation.

Published:

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-2024-30402 Overview

CVE-2024-30402 is a Denial of Service (DoS) vulnerability in the Layer 2 Address Learning Daemon (l2ald) of Juniper Networks Junos OS and Junos OS Evolved. The flaw stems from an Improper Check for Unusual or Exceptional Conditions [CWE-754]. When telemetry requests reach the device while the Dynamic Rendering Daemon (drend) is suspended, l2ald crashes and restarts. Repeated occurrences of these conditions result in a sustained DoS state. An unauthenticated, adjacent attacker can trigger the condition without user interaction.

Critical Impact

Repeated l2ald crashes disrupt Layer 2 address learning on affected Juniper routers and switches, degrading network availability across the data plane.

Affected Products

  • Juniper Junos OS versions earlier than 20.4R3-S10, 21.2R3-S7, 21.4R3-S5, 22.1R3-S4, 22.2R3-S3, 22.3R3-S1, 22.4R3, 23.2R1-S2, and 23.2R2
  • Juniper Junos OS Evolved versions earlier than 21.4R3-S5-EVO, 22.1R3-S4-EVO, 22.2R3-S3-EVO, 22.3R3-S1-EVO, 22.4R3-EVO, and 23.2R2-EVO
  • Devices running the Layer 2 Address Learning Daemon (l2ald) with telemetry enabled

Discovery Timeline

  • 2024-04-12 - CVE-2024-30402 published to NVD by Juniper Networks
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2024-30402

Vulnerability Analysis

The vulnerability resides in l2ald, the Junos process responsible for Layer 2 MAC address learning and forwarding database management. The daemon fails to handle an exceptional condition that occurs when telemetry requests are received while the Dynamic Rendering Daemon (drend) is suspended. Instead of gracefully handling the suspended-dependency state, l2ald crashes and restarts. Each restart interrupts MAC learning, which disrupts normal Layer 2 forwarding behavior on the device.

Because the triggering condition depends on drend suspension, the attacker cannot deterministically control when the fault occurs. However, repeated telemetry traffic combined with recurring drend suspensions produces sustained process churn, resulting in a persistent DoS.

Root Cause

The root cause is an Improper Check for Unusual or Exceptional Conditions [CWE-754] in the l2ald daemon. The process does not validate the operational state of its drend dependency before processing telemetry requests. When drend is suspended, the resulting unhandled condition causes l2ald to terminate abnormally.

Attack Vector

Exploitation requires network-adjacent access to send telemetry requests to the targeted Junos device. No authentication or user interaction is required. The attack succeeds only when drend is in a suspended state, which is outside the attacker's direct control, but repeated telemetry traffic increases the likelihood of coinciding with the vulnerable condition. See the Juniper Security Advisory JSA79180 for additional technical context.

No verified public exploit code is available for this vulnerability. The issue is described in prose by the vendor advisory rather than through published proof-of-concept code.

Detection Methods for CVE-2024-30402

Indicators of Compromise

  • Repeated l2ald process crash and restart events in Junos system logs
  • Core dump files generated by l2ald on affected routing engines
  • Transient loss of Layer 2 MAC learning and forwarding database entries following telemetry request bursts
  • Correlated drend suspension messages preceding l2ald termination events

Detection Strategies

  • Review show system processes extensive output for abnormal l2ald restart counts or elevated resource usage
  • Inspect /var/log/messages and /var/log/chassisd for l2ald crash signatures and drend state transitions
  • Monitor streaming telemetry subscription patterns from unexpected adjacent sources
  • Correlate Layer 2 forwarding instability with telemetry request volume on management and control interfaces

Monitoring Recommendations

  • Enable syslog forwarding of l2ald and drend events to a centralized logging platform for historical analysis
  • Alert on repeated daemon restart events within short time windows on Junos devices
  • Track MAC address table flapping and forwarding database churn metrics on affected platforms
  • Restrict telemetry endpoint exposure to trusted management networks only

How to Mitigate CVE-2024-30402

Immediate Actions Required

  • Identify Junos OS and Junos OS Evolved devices running affected versions listed in Juniper Security Advisory JSA79180
  • Upgrade to a fixed release such as 20.4R3-S10, 21.2R3-S7, 21.4R3-S5, 22.1R3-S4, 22.2R3-S3, 22.3R3-S1, 22.4R3, 23.2R1-S2, 23.2R2, or the corresponding -EVO builds
  • Restrict Layer 2 adjacency to the management and telemetry planes using firewall filters and interface ACLs
  • Audit telemetry subscriptions and remove unused or untrusted gRPC/gNMI endpoints

Patch Information

Juniper Networks has released fixed software for all affected release trains. Apply the appropriate fixed version from the Juniper Security Advisory JSA79180. Fixed versions include Junos OS 20.4R3-S10, 21.2R3-S7, 21.4R3-S5, 22.1R3-S4, 22.2R3-S3, 22.3R3-S1, 22.4R3, 23.2R1-S2, and 23.2R2, plus the matching Junos OS Evolved builds.

Workarounds

  • Disable or restrict streaming telemetry (gRPC/gNMI) services if not required for operations
  • Apply control-plane protection policies and loopback firewall filters to limit telemetry requests to trusted sources
  • Segment management traffic onto an out-of-band network to reduce adjacent exposure
  • Monitor l2ald and drend daemon health and schedule proactive device reboots if sustained degradation is observed before patching
bash
# Example: restrict telemetry access via a Junos firewall filter on the loopback interface
set firewall family inet filter PROTECT-RE term ALLOW-TELEMETRY from source-address 10.10.0.0/24
set firewall family inet filter PROTECT-RE term ALLOW-TELEMETRY from protocol tcp
set firewall family inet filter PROTECT-RE term ALLOW-TELEMETRY from destination-port 32767
set firewall family inet filter PROTECT-RE term ALLOW-TELEMETRY then accept
set firewall family inet filter PROTECT-RE term DENY-TELEMETRY from protocol tcp destination-port 32767
set firewall family inet filter PROTECT-RE term DENY-TELEMETRY then discard
set interfaces lo0 unit 0 family inet filter input PROTECT-RE

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.