CVE-2024-21587

Junos OS: MX Series: Memory leak in bbe-smgd process if BFD liveness detection for DHCP subscribers is enabled

AllVuln state: AFFECTED

MEDIUM
CVSS
6.5
3.1
EPSS
0.28%
Percentile 21.68%
CISA KEV
Not listed
Published
January 12, 2024
Updated June 3, 2025

Description

An Improper Handling of Exceptional Conditions vulnerability in the broadband edge subscriber management daemon (bbe-smgd) of Juniper Networks Junos OS on MX Series allows an attacker directly connected to the vulnerable system who repeatedly flaps DHCP subscriber sessions to cause a slow memory leak, ultimately leading to a Denial of Service (DoS). Memory can only be recovered by manually restarting bbe-smgd. This issue only occurs if BFD liveness detection for DHCP subscribers is enabled. Systems without BFD liveness detection enabled are not vulnerable to this issue. Indication of the issue can be observed by periodically executing the 'show system processes extensive' command, which will indicate an increase in memory allocation for bbe-smgd. A small amount of memory is leaked every time a DHCP subscriber logs in, which will become visible over time, ultimately leading to memory starvation. user@junos> show system processes extensive | match bbe-smgd 13071 root 24 0 415M 201M select 0 0:41 7.28% bbe-smgd{bbe-smgd} 13071 root 20 0 415M 201M select 1 0:04 0.00% bbe-smgd{bbe-smgd} ... user@junos> show system processes extensive | match bbe-smgd 13071 root 20 0 420M 208M select 0 4:33 0.10% bbe-smgd{bbe-smgd} 13071 root 20 0 420M 208M select 0 0:12 0.00% bbe-smgd{bbe-smgd} ... This issue affects Juniper Networks Junos OS on MX Series: * All versions earlier than 20.4R3-S9; * 21.2 versions earlier than 21.2R3-S7; * 21.3 versions earlier than 21.3R3-S5; * 21.4 versions earlier than 21.4R3-S5; * 22.1 versions earlier than 22.1R3-S4; * 22.2 versions earlier than 22.2R3-S3; * 22.3 versions earlier than 22.3R3-S2; * 22.4 versions earlier than 22.4R2-S2, 22.4R3; * 23.2 versions earlier than 23.2R1-S1, 23.2R2.

Risk details

CVSS vector
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
attack vector
A
attack complexity
L
privileges required
N
user interaction
N
scope
U
CWE
CWE-755, Denial of Service (DoS)

What should I do?

Review the vendor remediation for fixed or recommended release 20.4R3-S9.

Supported product evidence

Juniper Networks · Junos OS
Confirmed affected by authoritative structured evidence · Juniper Networks CNA / CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
20.4R3-S9
NOT_AFFECTED · EXACT
20.4R3-S9
AFFECTED · RANGE
21.2R3-S7
NOT_AFFECTED · EXACT
21.2R3-S7
AFFECTED · RANGE
21.3R3-S5
NOT_AFFECTED · EXACT
21.3R3-S5
AFFECTED · RANGE
21.4R3-S5
NOT_AFFECTED · EXACT
21.4R3-S5
AFFECTED · RANGE
22.1R3-S4
NOT_AFFECTED · EXACT
22.1R3-S4
AFFECTED · RANGE
22.2R3-S3
NOT_AFFECTED · EXACT
22.2R3-S3
AFFECTED · RANGE
22.3R3-S2
NOT_AFFECTED · EXACT
22.3R3-S2
UNKNOWN · UNKNOWN
{"lessThan": "22.4R2-S2, 22.4R3", "status": "affected", "version": "22.4", "versionType": "semver"}
UNKNOWN · UNKNOWN
{"lessThan": "23.2R1-S1, 23.2R2", "status": "affected", "version": "23.2", "versionType": "semver"}
NOT_AFFECTED · DEFAULT
{"defaultStatus": "unaffected"}

Remediation

FIX_AVAILABLE
Release train: 20.4
First fixed: 20.4R3-S9
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.2
First fixed: 21.2R3-S7
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.3
First fixed: 21.3R3-S5
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.4
First fixed: 21.4R3-S5
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.1
First fixed: 22.1R3-S4
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.2
First fixed: 22.2R3-S3
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.3
First fixed: 22.3R3-S2
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
20.4R3-S9
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection
AFFECTED · RANGE
21.2 → 21.2R3-S7
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection
AFFECTED · RANGE
21.3 → 21.3R3-S5
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection
AFFECTED · RANGE
21.4 → 21.4R3-S5
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection
AFFECTED · RANGE
22.1 → 22.1R3-S4
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection
AFFECTED · RANGE
22.2 → 22.2R3-S3
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection
AFFECTED · RANGE
22.3 → 22.3R3-S2
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection
AFFECTED · RANGE
22.4 → 22.4R2-S2, 22.4R3
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection
AFFECTED · RANGE
23.2 → 23.2R1-S1, 23.2R2
Platform: MX Series
Required configuration: DHCP liveness detection is enabled and configured as follows: [edit forwarding-options dhcp-relay] user@host# edit liveness-detection

Remediation

UNKNOWN
Release train: 20.4R3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.4
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.1
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 22.4
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 23.2
First fixed: Unknown
Vendor recommended: Not supplied

Evidence sources

Coverage varies by vendor, product, platform, and historical source availability. Absence of a finding is not a security guarantee. Validate critical remediation against the linked vendor advisory.

AllVuln data refreshed November 5, 2026.