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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | nanopb | no fix listed | DEBIAN-CVE-2024-53984 |
| Debian:13 | nanopb | 0.4.9.1-1 | DEBIAN-CVE-2024-53984 |
| Debian:14 | nanopb | 0.4.9.1-1 | DEBIAN-CVE-2024-53984 |
| Ubuntu:22.04:LTS | nanopb | no fix listed | UBUNTU-CVE-2024-53984 |
| Ubuntu:24.04:LTS | nanopb | no fix listed | UBUNTU-CVE-2024-53984 |
| Ubuntu:25.10 | nanopb | no fix listed | UBUNTU-CVE-2024-53984 |
| Ubuntu:26.04:LTS | nanopb | no fix listed | UBUNTU-CVE-2024-53984 |
| Ubuntu:26.10 | nanopb | no fix listed | UBUNTU-CVE-2024-53984 |
Affected products (as reported)
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