CVE-2024-53984Nanopb does not release memory on error return when using PB_DECODE_DELIMITED
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.
What to do
Fixed builds are available from Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | nanopb | Fix pending | UBUNTU-CVE-2024-53984 | |
| Ubuntu 26.04 | nanopb | Under investigation | UBUNTU-CVE-2024-53984 | |
| Ubuntu 25.10 | nanopb | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2024-53984 | |
| Ubuntu 24.04 | nanopb | Under investigation | UBUNTU-CVE-2024-53984 | |
| Ubuntu 22.04 | nanopb | Under investigation | UBUNTU-CVE-2024-53984 | |
| Ubuntu 20.04 | nanopb | Fix pending | UBUNTU-CVE-2024-53984 | |
| Debian 14 | nanopb | Fixed | 0.4.9.1-1 | DEBIAN-CVE-2024-53984 |
| Debian 13 | nanopb | Fixed | 0.4.9.1-1 | DEBIAN-CVE-2024-53984 |
| Debian 12 | nanopb | Fix pending | DEBIAN-CVE-2024-53984 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- nanopb: affected: >=0.4.0, < 0.4.9.1
References
- https://github.com/nanopb/nanopb/security/advisories/GHSA-xwqq-qxmw-hj5r
- https://github.com/nanopb/nanopb/commit/2b86c255aa52250438d5aba124d0e86db495b378
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.