CVEfocus › CVE database › CVE-2024-53984

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

CVSS 4.3 MediumEPSS 0.7% (higher than 50% of CVEs)Published 2024-12-02Updated 2024-12-02Assigner: GitHub_M

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.

CWE-401CWE-755

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

2Fixed
3Fix pending
3Under investigation
1Will not fix

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10nanopbFix pendingUBUNTU-CVE-2024-53984
Ubuntu 26.04nanopbUnder investigationUBUNTU-CVE-2024-53984
Ubuntu 25.10nanopbWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2024-53984
Ubuntu 24.04nanopbUnder investigationUBUNTU-CVE-2024-53984
Ubuntu 22.04nanopbUnder investigationUBUNTU-CVE-2024-53984
Ubuntu 20.04nanopbFix pendingUBUNTU-CVE-2024-53984
Debian 14nanopbFixed0.4.9.1-1DEBIAN-CVE-2024-53984
Debian 13nanopbFixed0.4.9.1-1DEBIAN-CVE-2024-53984
Debian 12nanopbFix pendingDEBIAN-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.

References

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.