Vulnerability · Published Dec 2, 2024 · Assigned by GitHub_M

CVE-2024-53984Nanopb does not release memory on error return when using PB_DECODE_DELIMITED

Medium 4.3

In plain English

A medium-severity memory leak in nanopb from nanopb. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 35% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.4%top 64.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12nanopbno fix listedDEBIAN-CVE-2024-53984
Debian:13nanopb0.4.9.1-1DEBIAN-CVE-2024-53984
Debian:14nanopb0.4.9.1-1DEBIAN-CVE-2024-53984
Ubuntu:22.04:LTSnanopbno fix listedUBUNTU-CVE-2024-53984
Ubuntu:24.04:LTSnanopbno fix listedUBUNTU-CVE-2024-53984
Ubuntu:25.10nanopbno fix listedUBUNTU-CVE-2024-53984
Ubuntu:26.04:LTSnanopbno fix listedUBUNTU-CVE-2024-53984
Ubuntu:26.10nanopbno fix listedUBUNTU-CVE-2024-53984

Affected products (as reported)

VendorProductVersions
nanopb nanopb >=0.4.0, < 0.4.9.1

Weakness: CWE-401, CWE-755 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

References