# CVE-2024-39536: Junos OS and Junos OS Evolved: Flaps of BFD sessions with authentication cause a ppmd memory leak

- Vendor: Juniper Networks, Junos OS, Junos OS Evolved
- Severity: MEDIUM (CVSS 4.0 6)
- Exploited (CISA KEV): not listed
- EPSS: 0.2% on 2026-12-02
- Public exploit: not checked
- Patch available: yes
- Vendor advisory: JSA82996, https://supportportal.juniper.net/JSA82996
- Published: 2024-07-10; updated: 2024-07-12
- Page: https://patchtonight.com/cve/CVE-2024-39536/

## Affected and fixed versions

| Affected | Fixed in |
| --- | --- |
| Junos OS 0 | 21.2R3-S8 or later |
| Junos OS 21.4 | 21.4R3-S7 or later |
| Junos OS 22.1 | 22.1R3-S4 or later |
| Junos OS 22.2 | 22.2R3-S4 or later |
| Junos OS 22.3 | 22.3R3 or later |
| Junos OS 22.4 | 22.4R2-S2, 22.4R3 or later |
| Junos OS Evolved 21.2-EVO | 21.2R3-S8-EVO or later |
| Junos OS Evolved 21.4-EVO | 21.4R3-S7-EVO or later |
| Junos OS Evolved 22.2-EVO | 22.2R3-S4-EVO or later |
| Junos OS Evolved 22.3-EVO | 22.3R3-EVO or later |
| Junos OS Evolved 22.4-EVO | 22.4R3-EVO or later |
| Junos OS Evolved 23.2-EVO | 23.2R1-EVO or later |

## The vendor's description

A Missing Release of Memory after Effective Lifetime vulnerability in the Periodic Packet Management Daemon (ppmd) of Juniper Networks Junos OS and Junos OS Evolved allows an unauthenticated adjacent attacker to cause a 

Denial-of-Service (DoS).


When a BFD session configured with authentication flaps, ppmd memory can leak. Whether the leak happens depends on a race condition which is outside the attackers control. This issue only affects BFD operating in distributed aka delegated (which is the default behavior) or inline mode.



Whether the leak occurs can be monitored with the following CLI command:

> show ppm request-queue


FPC     Pending-request
fpc0                   2
request-total-pending: 2


where a continuously increasing number of pending requests is indicative of the leak. 








This issue affects:

Junos OS:


  *  All versions before 21.2R3-S8,
  *  21.4 versions before 21.4R3-S7,
  *  22.1 versions before 22.1R3-S4,
  *  22.2 versions before 22.2R3-S4, 
  *  22.3 versions before 22.3R3,
  *  22.4 versions before 22.4R2-S2, 22.4R3.



Junos OS Evolved:
  *  All versions before 21.2R3-S8-EVO,
  *  21.4-EVO versions before 21.4R3-S7-EVO,
  *  22.2-EVO versions before 22.2R3-S4-EVO,
  *  22.3-EVO versions before 22.3R3-EVO,
  *  22.4-EVO versions before 22.4R3-EVO.

## Workarounds

There are no known workarounds for this issue.

## Sources

- [Juniper Networks advisory](https://supportportal.juniper.net/JSA82996)

---

Data from PatchTonight (https://patchtonight.com), compiled from vendor advisories, CISA KEV and FIRST EPSS. Please credit PatchTonight and link to the CVE page when you use it.
