1. Archivio CVE
  2. 2025
  3. CVE-2025-52955

CVE-2025-52955

6.5 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H 6.5 – Media

Descrizione

An Incorrect Calculation of Buffer Size vulnerability in the routing protocol daemon (rpd) of Juniper Networks Junos OS and Junos OS Evolved allows an adjacent unauthenticated attacker to cause a memory corruption that leads to a rpd crash.  When the logical interface using a routing instance flaps continuously, specific updates are sent to the jflow/sflow modules. This results in memory corruption, leading to an rpd crash and restart.  Continued receipt of these specific updates will cause a sustained Denial of Service condition. This issue affects Junos OS: * All versions before 21.2R3-S9, * All versions of 21.4, * All versions of 22.2, * from 22.4 before 22.4R3-S7, * from 23.2 before 23.2R2-S3, * from 23.4 before 23.4R2-S4, * from 24.2 before 24.2R2. Junos OS Evolved:  * All versions of 21.2-EVO,  * All versions of 21.4-EVO,  * All versions of 22.2-EVO,  * from 22.4 before 22.4R3-S7-EVO,  * from 23.2 before 23.2R2-S3-EVO,  * from 23.4 before 23.4R2-S4-EVO,  * from 24.2 before 24.2R2-EVO.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
juniper junos < 21.2 –
juniper junos 21.2 –
juniper junos 21.2 r1 –
juniper junos 21.2 r1-s1 –
juniper junos 21.2 r1-s2 –
juniper junos 21.2 r2 –
juniper junos 21.2 r2-s1 –
juniper junos 21.2 r2-s2 –
juniper junos 21.2 r3 –
juniper junos 21.2 r3-s1 –
juniper junos 21.2 r3-s2 –
juniper junos 21.2 r3-s3 –
juniper junos 21.2 r3-s4 –
juniper junos 21.2 r3-s5 –
juniper junos 21.2 r3-s6 –
juniper junos 21.2 r3-s7 –
juniper junos 21.2 r3-s8 –
juniper junos 21.4 –
juniper junos 22.2 –
juniper junos 22.4 –
juniper junos 22.4 r1 –
juniper junos 22.4 r1-s1 –
juniper junos 22.4 r1-s2 –
juniper junos 22.4 r2 –
juniper junos 22.4 r2-s1 –
juniper junos 22.4 r2-s2 –
juniper junos 22.4 r3 –
juniper junos 22.4 r3-s1 –
juniper junos 22.4 r3-s2 –
juniper junos 22.4 r3-s3 –
juniper junos 22.4 r3-s4 –
juniper junos 22.4 r3-s5 –
juniper junos 22.4 r3-s6 –
juniper junos 23.2 –
juniper junos 23.2 r1 –
juniper junos 23.2 r1-s1 –
juniper junos 23.2 r1-s2 –
juniper junos 23.2 r2 –
juniper junos 23.2 r2-s1 –
juniper junos 23.2 r2-s2 –
juniper junos 23.4 –
juniper junos 23.4 r1 –
juniper junos 23.4 r1-s1 –
juniper junos 23.4 r1-s2 –
juniper junos 23.4 r2 –
juniper junos 23.4 r2-s1 –
juniper junos 23.4 r2-s2 –
juniper junos 23.4 r2-s3 –
juniper junos 24.2 –
juniper junos 24.2 r1 –
juniper junos 24.2 r1-s1 –
juniper junos 24.2 r1-s2 –
juniper junos os evolved 21.2 –
juniper junos os evolved 21.4 –
juniper junos os evolved 22.2 –
juniper junos os evolved 22.4 –
juniper junos os evolved 22.4 r1 –
juniper junos os evolved 22.4 r1-s1 –
juniper junos os evolved 22.4 r1-s2 –
juniper junos os evolved 22.4 r2 –
juniper junos os evolved 22.4 r2-s1 –
juniper junos os evolved 22.4 r2-s2 –
juniper junos os evolved 22.4 r3 –
juniper junos os evolved 22.4 r3-s1 –
juniper junos os evolved 22.4 r3-s2 –
juniper junos os evolved 22.4 r3-s3 –
juniper junos os evolved 22.4 r3-s4 –
juniper junos os evolved 22.4 r3-s5 –
juniper junos os evolved 22.4 r3-s6 –
juniper junos os evolved 23.2 –
juniper junos os evolved 23.2 r1 –
juniper junos os evolved 23.2 r1-s1 –
juniper junos os evolved 23.2 r1-s2 –
juniper junos os evolved 23.2 r2 –
juniper junos os evolved 23.2 r2-s1 –
juniper junos os evolved 23.2 r2-s2 –
juniper junos os evolved 23.4 –
juniper junos os evolved 23.4 r1 –
juniper junos os evolved 23.4 r1-s1 –
juniper junos os evolved 23.4 r1-s2 –
juniper junos os evolved 23.4 r2 –
juniper junos os evolved 23.4 r2-s1 –
juniper junos os evolved 23.4 r2-s2 –
juniper junos os evolved 23.4 r2-s3 –
juniper junos os evolved 24.2 –
juniper junos os evolved 24.2 r1 –
juniper junos os evolved 24.2 r1-s2 –
Tutte le 793 vulnerabilità di Juniper Junos
Tutte le 250 vulnerabilità di Juniper Junos Os Evolved

Tipo di vulnerabilità

CWE-131 Incorrect Calculation of Buffer Size

The product does not correctly calculate the size to be used when allocating a buffer.

Impatto sui sistemi

AmbitoImpatto
Integrità, Disponibilità, Riservatezza Interruzione del servizio: arresto o riavvio, Eseguire codice o comandi non autorizzati, Leggere la memoria, Modificare la memoria

Come si previene

Sviluppo When allocating a buffer for the purpose of transforming, converting, or encoding an input, allocate enough memory to handle the largest possible encoding. For example, in a routine that converts & characters to &amp; for HTML entity encoding, the output buffer needs to be at least 5 times as large as the input buffer.
Sviluppo Understand the programming language's underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, not-a-number calculations, and how the language handles numbers that are too large or too small for its underlying representation. Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.
Sviluppo · Validazione dell’input Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range.
Architettura e progettazione Per ogni controllo di sicurezza eseguito lato client, ripeti lo stesso controllo lato server, per evitare CWE-602: un attaccante può aggirare i controlli del client modificando i valori dopo il controllo o eliminando del tutto i controlli dal client, e inviare poi al server i valori modificati.
Sviluppo When processing structured incoming data containing a size field followed by raw data, identify and resolve any inconsistencies between the size field and the actual size of the data (CWE-130).
Sviluppo When allocating memory that uses sentinels to mark the end of a data structure - such as NUL bytes in strings - make sure you also include the sentinel in your calculation of the total amount of memory that must be allocated.
Sviluppo Replace unbounded copy functions with analogous functions that support length arguments, such as strcpy with strncpy. Create these if they are not available.
Sviluppo Use sizeof() on the appropriate data type to avoid CWE-467.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 184 CVE di tipo CWE-131, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org