CVE-2023-22406

Junos OS and Junos OS Evolved: A memory leak which will ultimately lead to an rpd crash will be observed when a peer interface flaps continuously in a Segment Routing scenario using OSPF

AllVuln state: AFFECTED

MEDIUM
CVSS
6.5
3.1
EPSS
0.32%
Percentile 26.62%
CISA KEV
Not listed
Published
January 12, 2023
Updated April 7, 2025

Description

A Missing Release of Memory after Effective Lifetime vulnerability in the kernel of Juniper Networks Junos OS and Junos OS Evolved allows an adjacent, unauthenticated attacker to cause a Denial of Service (DoS). In a segment-routing scenario with OSPF as IGP, when a peer interface continuously flaps, next-hop churn will happen and a continuous increase in Routing Protocol Daemon (rpd) memory consumption will be observed. This will eventually lead to an rpd crash and restart when the memory is full. The memory consumption can be monitored using the CLI command "show task memory detail" as shown in the following example: user@host> show task memory detail | match "RT_NEXTHOPS_TEMPLATE|RT_TEMPLATE_BOOK_KEE" RT_NEXTHOPS_TEMPLATE 1008 1024 T 50 51200 50 51200 RT_NEXTHOPS_TEMPLATE 688 768 T 50 38400 50 38400 RT_NEXTHOPS_TEMPLATE 368 384 T 412330 158334720 412330 158334720 RT_TEMPLATE_BOOK_KEE 2064 2560 T 33315 85286400 33315 85286400 user@host> show task memory detail | match "RT_NEXTHOPS_TEMPLATE|RT_TEMPLATE_BOOK_KEE" RT_NEXTHOPS_TEMPLATE 1008 1024 T 50 51200 50 51200 RT_NEXTHOPS_TEMPLATE 688 768 T 50 38400 50 38400 RT_NEXTHOPS_TEMPLATE 368 384 T 419005 160897920 419005 160897920 <=== RT_TEMPLATE_BOOK_KEE 2064 2560 T 39975 102336000 39975 10233600 <=== This issue affects: Juniper Networks Junos OS All versions prior to 19.3R3-S7; 19.4 versions prior to 19.4R2-S8, 19.4R3-S9; 20.2 versions prior to 20.2R3-S5; 20.3 versions prior to 20.3R3-S5; 20.4 versions prior to 20.4R3-S4; 21.1 versions prior to 21.1R3-S3; 21.2 versions prior to 21.2R3-S2; 21.3 versions prior to 21.3R3-S1; 21.4 versions prior to 21.4R2-S1, 21.4R3; 22.1 versions prior to 22.1R2. Juniper Networks Junos OS Evolved All versions prior to 20.4R3-S4-EVO; 21.4 versions prior to 21.4R2-S1-EVO, 21.4R3-EVO; 22.1 versions prior to 22.1R2-EVO.

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-401, Denial of Service (DoS)

What should I do?

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

Supported product evidence

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

Applicability

AFFECTED · RANGE
20.4R3-S4-EVO
NOT_AFFECTED · EXACT
20.4R3-S4-EVO
UNKNOWN · UNKNOWN
{"lessThan": "21.4R2-S1-EVO, 21.4R3-EVO", "status": "affected", "version": "21.4", "versionType": "custom"}
AFFECTED · RANGE
22.1R2-EVO
NOT_AFFECTED · EXACT
22.1R2-EVO
UNKNOWN · DEFAULT
{"defaultStatus": null}

Remediation

FIX_AVAILABLE
Release train: 20.4
First fixed: 20.4R3-S4-EVO
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.1
First fixed: 22.1R2-EVO
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS
Confirmed affected by authoritative structured evidence · Juniper Networks CNA / CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
19.3R3-S7
NOT_AFFECTED · EXACT
19.3R3-S7
UNKNOWN · UNKNOWN
{"lessThan": "19.4R2-S8, 19.4R3-S9", "status": "affected", "version": "19.4", "versionType": "custom"}
AFFECTED · RANGE
20.2R3-S5
NOT_AFFECTED · EXACT
20.2R3-S5
AFFECTED · RANGE
20.3R3-S5
NOT_AFFECTED · EXACT
20.3R3-S5
AFFECTED · RANGE
20.4R3-S4
NOT_AFFECTED · EXACT
20.4R3-S4
AFFECTED · RANGE
21.1R3-S3
NOT_AFFECTED · EXACT
21.1R3-S3
AFFECTED · RANGE
21.2R3-S2
NOT_AFFECTED · EXACT
21.2R3-S2
AFFECTED · RANGE
21.3R3-S1
NOT_AFFECTED · EXACT
21.3R3-S1
UNKNOWN · UNKNOWN
{"lessThan": "21.4R2-S1, 21.4R3", "status": "affected", "version": "21.4", "versionType": "custom"}
AFFECTED · RANGE
22.1R2
NOT_AFFECTED · EXACT
22.1R2
UNKNOWN · DEFAULT
{"defaultStatus": null}

Remediation

FIX_AVAILABLE
Release train: 19.3
First fixed: 19.3R3-S7
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 20.2
First fixed: 20.2R3-S5
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 20.3
First fixed: 20.3R3-S5
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 20.4
First fixed: 20.4R3-S4
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.1
First fixed: 21.1R3-S3
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.2
First fixed: 21.2R3-S2
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 21.3
First fixed: 21.3R3-S1
Vendor recommended: Not supplied
Remediation source ↗
FIX_AVAILABLE
Release train: 22.1
First fixed: 22.1R2
Vendor recommended: Not supplied
Remediation source ↗
Juniper Networks · Junos OS Evolved
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
unspecified → 20.4R3-S4-EVO
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
21.4 → 21.4R2-S1-EVO, 21.4R3-EVO
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
22.1 → 22.1R2-EVO
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}

Remediation

UNKNOWN
Release train: Not specified
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
Juniper Networks · Junos OS
Referenced / metadata only · CVE List V5
Vendor advisory ↗

Applicability

AFFECTED · RANGE
unspecified → 19.3R3-S7
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
19.4 → 19.4R2-S8, 19.4R3-S9
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
20.2 → 20.2R3-S5
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
20.3 → 20.3R3-S5
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
20.4 → 20.4R3-S4
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
21.1 → 21.1R3-S3
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
21.2 → 21.2R3-S2
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
21.3 → 21.3R3-S1
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
21.4 → 21.4R2-S1, 21.4R3
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}
AFFECTED · RANGE
22.1 → 22.1R2
Required configuration: To be exposed to this issue a minimal SR configuration for OSPF like in the following example is required: [protocols ospf source-packet-routing}

Remediation

UNKNOWN
Release train: Not specified
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 19.4
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 20.2
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 20.3
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 20.4
First fixed: Unknown
Vendor recommended: Not supplied
UNKNOWN
Release train: 21.1
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

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.