Skip to main content
Vulnerability Database/CVE-2025-30646

CVE-2025-30646: Juniper Junos LLDP DoS Vulnerability

CVE-2025-30646 is a denial of service flaw in Juniper Junos OS affecting the Layer 2 Control Protocol daemon. Malformed LLDP packets crash the l2cpd process, creating sustained DoS conditions. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

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-2025-30646 Overview

CVE-2025-30646 is a signed to unsigned conversion error [CWE-195] in the Layer 2 Control Protocol daemon (l2cpd) of Juniper Networks Junos OS and Junos OS Evolved. An unauthenticated adjacent attacker can send a specifically malformed Link Layer Discovery Protocol (LLDP) Type-Length-Value (TLV) to crash and restart the l2cpd process. Continued transmission of the malicious packet creates a sustained Denial of Service (DoS) condition. The issue only manifests when an LLDP telemetry subscription is active on the device.

Critical Impact

An attacker on an adjacent Layer 2 segment can repeatedly crash the l2cpd daemon, disrupting Layer 2 control-plane functions such as LLDP, STP, and related protocols on affected Juniper routers and switches.

Affected Products

  • Juniper Junos OS: all versions before 21.2R3-S9, 21.4 before 21.4R3-S10, 22.2 before 22.2R3-S6, 22.4 before 22.4R3-S6, 23.2 before 23.2R2-S3, 23.4 before 23.4R2-S4, and 24.2 before 24.2R2
  • Juniper Junos OS Evolved: all versions before 21.4R3-S10-EVO, 22.2-EVO before 22.2R3-S6-EVO, 22.4-EVO before 22.4R3-S6-EVO, 23.2-EVO before 23.2R2-S3-EVO, 23.4-EVO before 23.4R2-S4-EVO, and 24.2-EVO before 24.2R2-EVO
  • Deployments with LLDP telemetry subscription enabled

Discovery Timeline

  • 2025-04-09 - CVE-2025-30646 published to NVD
  • 2026-06-17 - Last updated in NVD database

Technical Details for CVE-2025-30646

Vulnerability Analysis

The vulnerability resides in the Juniper l2cpd process, which handles Layer 2 control protocols including LLDP. When an LLDP telemetry subscription is active, the daemon parses incoming LLDP TLVs received on adjacent interfaces. A malformed TLV triggers a signed to unsigned conversion error during parsing, causing the process to crash. Junos then restarts l2cpd, but repeated transmission of the malicious frame keeps the daemon in a crash-restart loop. The result is a sustained outage of Layer 2 control functions on the targeted device.

Root Cause

The flaw is a numeric type confusion classified as CWE-195 (Signed to Unsigned Conversion Error). A length or offset value derived from the LLDP TLV header is interpreted using an incorrect signedness during parsing. When an attacker crafts a TLV with a value that becomes negative under signed interpretation, the subsequent conversion to an unsigned type produces an extremely large size value. The daemon then processes memory beyond expected bounds or hits an assertion, terminating the process.

Attack Vector

Exploitation requires adjacent-network access, meaning the attacker must be on the same Layer 2 broadcast domain as the vulnerable interface. LLDP is a link-local protocol, so the malicious TLV cannot be routed from a remote network. No authentication or user interaction is required. The attacker transmits crafted LLDP frames toward an interface on the Junos device that is configured with an active LLDP telemetry subscription. Each malformed frame triggers an l2cpd crash, and continuous transmission sustains the Denial of Service.

No verified public exploit code or proof-of-concept has been released for this vulnerability.

Detection Methods for CVE-2025-30646

Indicators of Compromise

  • Repeated l2cpd process crashes or restarts recorded in Junos system logs (/var/log/messages, /var/log/chassisd)
  • LLDP neighbor table flapping or loss of LLDP neighbors on affected interfaces
  • Core files generated by the l2cpd daemon in /var/crash/ or /var/tmp/
  • Unexpected LLDP frames with anomalous TLV length fields observed on Layer 2 segments

Detection Strategies

  • Monitor Junos syslog for l2cpd crash messages and daemon restart events, correlating with LLDP activity timestamps.
  • Deploy packet capture on management interfaces to inspect LLDP TLV structures for malformed length fields or oversized values.
  • Alert on repeated SNMP traps or telemetry events indicating l2cpd process termination.

Monitoring Recommendations

  • Forward Junos syslog and process-state telemetry to a centralized SIEM for correlation across devices.
  • Track LLDP neighbor-change counters on interfaces with LLDP telemetry subscriptions enabled.
  • Baseline normal l2cpd restart frequency and alert on deviations.

How to Mitigate CVE-2025-30646

Immediate Actions Required

  • Identify all Junos OS and Junos OS Evolved devices with active LLDP telemetry subscriptions.
  • Upgrade affected devices to a fixed release listed in Juniper Security Advisory JSA96456.
  • Restrict Layer 2 access to trusted segments and endpoints where feasible.

Patch Information

Juniper has released fixed versions including Junos OS 21.2R3-S9, 21.4R3-S10, 22.2R3-S6, 22.4R3-S6, 23.2R2-S3, 23.4R2-S4, and 24.2R2. Junos OS Evolved fixes are available in 21.4R3-S10-EVO, 22.2R3-S6-EVO, 22.4R3-S6-EVO, 23.2R2-S3-EVO, 23.4R2-S4-EVO, and 24.2R2-EVO. Review the Juniper Security Advisory JSA96456 for complete release details.

Workarounds

  • Disable the LLDP telemetry subscription on affected devices where operationally feasible, as the issue only triggers when such a subscription is active.
  • Limit LLDP processing to interfaces facing trusted hosts and disable LLDP on interfaces exposed to untrusted Layer 2 neighbors.
  • Apply port security and 802.1X controls to reduce the likelihood of a hostile device gaining adjacent-network access.
bash
# Disable LLDP on an untrusted interface in Junos
set protocols lldp interface <interface-name> disable
commit

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.