Junos OS: RIB and PFEs can get out of sync due to a memory leak caused by interface flaps or route churn
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-401.
Summary
A Missing Release of Memory after Effective Lifetime vulnerability in the kernel of Juniper Networks Junos OS allows an unauthenticated network based attacker to cause a Denial of Service (DoS). On all Junos platforms, the Kernel Routing Table (KRT) queue can get stuck due to a memory leak triggered by interface flaps or route churn leading to RIB and PFEs getting out of sync. The memory leak causes RTNEXTHOP/route and next-hop memory pressure issue and the KRT queue will eventually get stuck with the error- 'ENOMEM -- Cannot allocate memory'. The out-of-sync state between RIB and FIB can be seen with the "show route" and "show route forwarding-table" command. This issue will lead to failures for adding new routes. The KRT queue status can be checked using the CLI command "show krt queue": user@host > show krt state High-priority add queue: 1 queued ADD nhtype Router index 0 (31212) error 'ENOMEM -- Cannot allocate memory' kqp '0x8ad5e40' The following messages will be observed in /var/log/messages, which indicate high memory for routes/nexthops: host rpd[16279]: RPD_RT_HWM_NOTICE: New RIB highwatermark for routes: 266 [2022-03-04 05:06:07] host rpd[16279]: RPD_KRT_Q_RETRIES: nexthop ADD: Cannot allocate memory host rpd[16279]: RPD_KRT_Q_RETRIES: nexthop ADD: Cannot allocate memory host kernel: rts_veto_net_delayed_unref_limit: Route/nexthop memory is severe pressure. User Application to perform recovery actions. O p 8 err 12, rtsm_id 0:-1, msg type 10, veto simulation: 0. host kernel: rts_veto_net_delayed_unref_limit: Memory usage of M_RTNEXTHOP type = (806321208) Max size possible for M_RTNEXTHOP type = (689432176) Current delayed unref = (0), Max delayed unref on this platform = (120000) Current delayed weight unref = (0) Max delayed weight unref on this platform = (400000) curproc = rpd. This issue affects: Juniper Networks Junos OS 21.2 versions prior to 21.2R3; 21.3 versions prior to 21.3R2-S1, 21.3R3; 21.4 versions prior to 21.4R1-S2, 21.4R2; This issue does not affect Juniper Networks Junos OS versions prior to 21.2R1.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Juniper | Junos OS | 21.2 to before 21.2R3; 21.3 to before 21.3R2-S1, 21.3R3; 21.4 to before 21.4R1-S2, 21.4R2 | 21.2R3, 21.3R2-S1, 21.3R3, 21.4R1-S2, 21.4R2 | Patch available | CNA |
- Junos OS VendorJuniper Affected 21.2 to before 21.2R3; 21.3 to before 21.3R2-S1, 21.3R3; 21.4 to before 21.4R1-S2, 21.4R2 Fixed in 21.2R3, 21.3R2-S1, 21.3R3, 21.4R1-S2, 21.4R2 Patch available CNA
CPE configurations NVD · 15
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:juniper:junos:21.2:-:*:*:*:*:*:* | 21.2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.2:r1:*:*:*:*:*:* | 21.2 r1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.2:r1-s1:*:*:*:*:*:* | 21.2 r1-s1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.2:r1-s2:*:*:*:*:*:* | 21.2 r1-s2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.2:r2:*:*:*:*:*:* | 21.2 r2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.2:r2-s1:*:*:*:*:*:* | 21.2 r2-s1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.2:r2-s2:*:*:*:*:*:* | 21.2 r2-s2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.3:-:*:*:*:*:*:* | 21.3 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.3:r1:*:*:*:*:*:* | 21.3 r1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.3:r1-s1:*:*:*:*:*:* | 21.3 r1-s1 | Vulnerable | Juniper |
- cpe:2.3:o:juniper:junos:21.2:-:*:*:*:*:*:* Versions 21.2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.2:r1:*:*:*:*:*:* Versions 21.2 r1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.2:r1-s1:*:*:*:*:*:* Versions 21.2 r1-s1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.2:r1-s2:*:*:*:*:*:* Versions 21.2 r1-s2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.2:r2:*:*:*:*:*:* Versions 21.2 r2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.2:r2-s1:*:*:*:*:*:* Versions 21.2 r2-s1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.2:r2-s2:*:*:*:*:*:* Versions 21.2 r2-s2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.3:-:*:*:*:*:*:* Versions 21.3 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.3:r1:*:*:*:*:*:* Versions 21.3 r1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.3:r1-s1:*:*:*:*:*:* Versions 21.3 r1-s1 Vulnerable ·Juniper
Show 5 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:o:juniper:junos:21.3:r1-s2:*:*:*:*:*:* | 21.3 r1-s2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.3:r2:*:*:*:*:*:* | 21.3 r2 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:-:*:*:*:*:*:* | 21.4 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:r1:*:*:*:*:*:* | 21.4 r1 | Vulnerable | Juniper |
| cpe:2.3:o:juniper:junos:21.4:r1-s1:*:*:*:*:*:* | 21.4 r1-s1 | Vulnerable | Juniper |
- cpe:2.3:o:juniper:junos:21.3:r1-s2:*:*:*:*:*:* Versions 21.3 r1-s2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.3:r2:*:*:*:*:*:* Versions 21.3 r2 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:-:*:*:*:*:*:* Versions 21.4 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:r1:*:*:*:*:*:* Versions 21.4 r1 Vulnerable ·Juniper
- cpe:2.3:o:juniper:junos:21.4:r1-s1:*:*:*:*:*:* Versions 21.4 r1-s1 Vulnerable ·Juniper
Remediation
- Fix · CNA Junos OS (Juniper Networks) Fixed in 21.2R3, 21.3R2-S1, 21.3R3, 21.4R1-S2, 21.4R2
Timeline
- 2026-10-02 Threatist record created from CVE-2022-22209
- 2026-10-03 Alias added: GHSA-2jpc-grxp-p4w8
References
Exploit 1
More Juniper Junos vulnerabilities
- TI-2023-18638 Junos OS: EX and SRX Series: A PHP vulnerability in J-Web allows an unauthenticated to… KEVCVSS 3.1CRITICAL 9.8
- TI-2020-01585 Out of Cycle Security Advisory: Junos OS: Security vulnerability in J-Web and web based (HTTP/HTTPS) services KEVCVSS 3.1CRITICAL 9.8
- TI-2015-04610 Assertion failure in ISC BIND named via TKEY queries KEVCVSS 3.1HIGH 7.5
- TI-2025-15550 Junos OS: An local attacker with shell access can execute arbitrary code KEVCVSS 4.0MEDIUM 6.7
- TI-2023-18644 Junos OS: SRX Series: A vulnerability in J-Web allows an unauthenticated attacker to upload and download arbitrary files KEVCVSS 3.1MEDIUM 5.3
- TI-2023-18640 Junos OS: EX Series: A vulnerability in J-Web allows an unauthenticated attacker to upload arbitrary files KEVCVSS 3.1MEDIUM 5.3
Sources
- CVE-2022-22209 · CVE Program
- CVE-2022-22209 · NVD
- FIRST EPSS
- GHSA-2jpc-grxp-p4w8 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences