CVE-2024-53984 Nanopb does not release memory on error return when using PB_DECODE_DELIMITED
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebian
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.
Upgrade path
8 packages: 2 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/nanopb(Debian 12) | = 0.4.7-2; = 0.4.7-3; = 0.4.8-1; = 0.4.8-2 +4 more | No fix listed | No fix yet |
| ubuntu/nanopb(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/nanopb(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/nanopb(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/nanopb(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| debian/nanopb(Debian 13) | < 0.4.9.1-1 | 0.4.9.1-1 | Fixed |
| debian/nanopb(Debian 14) | < 0.4.9.1-1 | 0.4.9.1-1 | Fixed |
| nanopb | = >=0.4.0, < 0.4.9.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/nanopb(Debian:12) | All versions | No fix listed |
| debian/nanopb(Debian:12) | = 0.4.7-2 | No fix listed |
| debian/nanopb(Debian:12) | = 0.4.7-3 | No fix listed |
| debian/nanopb(Debian:12) | = 0.4.8-1 | No fix listed |
| debian/nanopb(Debian:12) | = 0.4.8-2 | No fix listed |
| debian/nanopb(Debian:12) | = 0.4.9-1 | No fix listed |
| debian/nanopb(Debian:12) | = 0.4.9.1-1 | No fix listed |
| debian/nanopb(Debian:12) | = 0.4.9.1-2 | No fix listed |
| debian/nanopb(Debian:13) | < 0.4.9.1-1 | 0.4.9.1-1 |
| debian/nanopb(Debian:14) | < 0.4.9.1-1 | 0.4.9.1-1 |
| ubuntu/nanopb(Ubuntu:22.04) | All versions | No fix listed |
| nanopb | = >=0.4.0, < 0.4.9.1 | No fix listed |
| ubuntu/nanopb(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/nanopb(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/nanopb(Ubuntu:26.10) | All versions | No fix listed |