4.3medium
Nanopb does not release memory on error return when using PB_DECODE_DELIMITED
- Severity
- 4.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Nanopb is a small code-size Protocol Buffers implementation. When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| nanopb nanopb | >=0.4.0, < 0.4.9.1 | CVE List |
Classification
What each source says
CVE List
Nanopb is a small code-size Protocol Buffers implementation. When the compile time option PB_ENABLE_MALLOC is enabled, the message contains at least one field with FT_POINTER field type, custom stream callback is used with unknown stream length. and the pb_decode_ex() function is used with flag PB_DECODE_DELIMITED, then the pb_decode_ex() function does not automatically call pb_release(), like is done for other failure cases. This could lead to memory leak and potential denial-of-service. This vulnerability is fixed in 0.4.9.1.
NVD (es)
Nanopb es una implementación de Protocol Buffers de tamaño de código pequeño. Cuando la opción de tiempo de compilación PB_ENABLE_MALLOC está habilitada, el mensaje contiene al menos un campo con el tipo de campo FT_POINTER, se utiliza una devolución de llamada de flujo personalizada con una longitud de flujo desconocida y la función pb_decode_ex() se utiliza con el indicador PB_DECODE_DELIMITED, entonces la función pb_decode_ex() no llama automáticamente a pb_release(), como se hace para otros casos de falla. Esto podría provocar una pérdida de memoria y una posible denegación de servicio. Esta vulnerabilidad se corrigió en la versión 0.4.9.1.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-53984 changed 2024-12-02 | CVE Terms of Use |
| NVD | CVE-2024-53984 changed 2026-06-17 | Public domain |