CVE-2020-5235

Summary

CVECVE-2020-5235
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2020-02-04 03:15:00 UTC
Updated2020-02-06 18:51:00 UTC
DescriptionThere is a potentially exploitable out of memory condition In Nanopb before 0.4.1, 0.3.9.5, and 0.2.9.4. When nanopb is compiled with PB_ENABLE_MALLOC, the message to be decoded contains a repeated string, bytes or message field and realloc() runs out of memory when expanding the array nanopb can end up calling `free()` on a pointer value that comes from uninitialized memory. Depending on platform this can result in a crash or further memory corruption, which may be exploitable in some cases. This problem is fixed in nanopb-0.4.1, nanopb-0.3.9.5, nanopb-0.2.9.4.

Risk And Classification

Problem Types: CWE-125

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Nanopb Project Nanopb All All All All
Application Nanopb Project Nanopb All All All All

References

ReferenceSourceLinkTags
Fix invalid free() after failed realloc() (GHSA-gcx3-7m76-287p) · nanopb/nanopb@7b39682 · GitHub MISC github.com Patch, Third Party Advisory
Out-of-memory condition on repeated field can result in invalid free() · Advisory · nanopb/nanopb · GitHub CONFIRM github.com Patch, Third Party Advisory
Fix invalid free() after failed realloc() (GHSA-gcx3-7m76-287p) · nanopb/nanopb@45582f1 · GitHub MISC github.com Patch, Third Party Advisory
Fix invalid free() after failed realloc() (GHSA-gcx3-7m76-287p) · nanopb/nanopb@aa9d0d1 · GitHub MISC github.com Patch, Third Party Advisory
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 610329 Google Pixel Android April 2021 Security Patch Missing
  • 610347 Google Android May 2021 Security Patch Missing for Huawei EMUI
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report