Nanopb does not release memory on error return when using PB_DECODE_DELIMITED
Résumé
Nanopb does not release memory on error return when using PB_DECODE_DELIMITED
Description d'origine
La description telle que publiée par la source (souvent en anglais).
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.
Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
État des correctifs par distribution
Paquets corrigés publiés par chaque distribution pour cette CVE
- Debian DEBIAN-CVE-2024-53984 nanopb
- Ubuntu UBUNTU-CVE-2024-53984 nanopb
Références
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- patch github.com