CVE-2024-53984
published medium CVSS 3.1 · 4.3Nanopb does not release memory on error return when using PB_DECODE_DELIMITED
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| nanopb | — | nanopb>=0.4.0, < 0.4.9.1 | Affected | Not stated | GitHub_M |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libprotobuf-nanopb0aarch64 | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libprotobuf-nanopb0i586 | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libprotobuf-nanopb0ppc64le | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libprotobuf-nanopb0s390x | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | libprotobuf-nanopb0x86_64 | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | nanopb-develaarch64 | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | nanopb-develi586 | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
Show 4 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | openSUSE-Leap-15.6 | nanopb-develppc64le | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | nanopb-devels390x | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | nanopb-develx86_64 | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
| SUSE / openSUSE | openSUSE-Leap-15.6 | nanopb-sourcenoarch | Advisory build | 0.4.6-bp156.4.3.1 | OPENSUSE-SU-2024:0400-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 4.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| nanopb | nanopb | >=0.4.0, < 0.4.9.1 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-401 CWE-401: Missing Release of Memory after Effective Lifetime
- CWE-755 CWE-755: Improper Handling of Exceptional Conditions
References
2Provider assertions
2GitHub_M · cna
Nanopb does not release memory on error return when using PB_DECODE_DELIMITED
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 0276b23d7d3dd7c6adaca41fc61426418efd3e8996f8881a0bc560869595f956
- Ingested
- 23 Sep 2026, 08:31:11 UTC
- Source record
- Official CVE record