Memory leak in Nanopb - CVE-2024-53984
Published: December 1, 2024 / Updated: November 9, 2026
Vulnerability details
The vulnerability allows a low-privileged remote attacker to cause memory leaks and potential denial of service in Nanopb.
The vulnerability exists due to missing memory cleanup when pb_decode_ex() fails on a corrupted length prefix with the PB_DECODE_DELIMITED flag. A low-privileged remote attacker can submit such messages to trigger unreleased allocations when PB_ENABLE_MALLOC is enabled, messages contain an FT_POINTER field, and a custom stream callback uses stream.bytes_left = SIZE_MAX.