{"id":"CVE-2021-26461","state":"PUBLISHED","title":"malloc, realloc and memalign implementations are vulnerable to integer wrap-arounds","description":"Apache Nuttx Versions prior to 10.1.0 are vulnerable to integer wrap-around in functions malloc, realloc and memalign. This improper memory assignment can lead to arbitrary memory allocation, resulting in unexpected behavior such as a crash or a remote code injection/execution.","publishedAt":"2021-06-21T17:10:11.000Z","updatedAt":"2024-08-03T20:26:25.470Z","severity":null,"assigner":"apache","products":["Apache Software Foundation Apache NuttX"],"affected":[{"vendor":"Apache Software Foundation","product":"Apache NuttX","versions":[{"version":"Apache NuttX","status":"affected","lessThan":"10.1.0","versionType":"custom"}],"platforms":["INTEGER OVERFLOW OR WRAPAROUND CWE-190"]}],"references":["https://lists.apache.org/thread.html/r806fccf8b003ae812d807c6c7d97950d44ed29b2713418cbe3f2bddd%40%3Cdev.nuttx.apache.org%3E"],"weaknesses":["CWE-190"],"ingestedAt":"2026-10-29T19:48:13.210Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2021/26xxx/CVE-2021-26461.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2021-26461","state":"PUBLISHED","datePublished":"2021-06-21T17:10:11.000Z","dateUpdated":"2024-08-03T20:26:25.470Z","assignerShortName":"apache","assignerOrgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09","dateReserved":"2021-01-30T00:00:00.000Z"},"containers":{"cna":{"title":"malloc, realloc and memalign implementations are vulnerable to integer wrap-arounds","descriptions":[{"lang":"en","value":"Apache Nuttx Versions prior to 10.1.0 are vulnerable to integer wrap-around in functions malloc, realloc and memalign. This improper memory assignment can lead to arbitrary memory allocation, resulting in unexpected behavior such as a crash or a remote code injection/execution."}],"affected":[{"vendor":"Apache Software Foundation","product":"Apache NuttX","versions":[{"version":"Apache NuttX","status":"affected","lessThan":"10.1.0","versionType":"custom"}],"platforms":["INTEGER OVERFLOW OR WRAPAROUND CWE-190"]}],"references":[{"url":"https://lists.apache.org/thread.html/r806fccf8b003ae812d807c6c7d97950d44ed29b2713418cbe3f2bddd%40%3Cdev.nuttx.apache.org%3E","tags":["x_refsource_MISC"]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-190","description":"INTEGER OVERFLOW OR WRAPAROUND CWE-190","lang":"en","type":"CWE"}]}],"providerMetadata":{"shortName":"apache","dateUpdated":"2021-06-21T17:10:10.000Z","orgId":"f0158376-9dc2-43b6-827c-5f631a4d8d09"},"credits":[{"lang":"en","value":"Apache NuttX would like to thank Omri Ben-Bassat of Section 52 at Azure Defender for IoT of Microsoft Corp for bringing this issue to our attention."}],"source":{"discovery":"UNKNOWN"},"x_generator":{"engine":"Vulnogram 0.0.9"},"x_legacyV4Record":{"CVE_data_meta":{"AKA":"BadAlloc","ASSIGNER":"security@apache.org","ID":"CVE-2021-26461","STATE":"PUBLIC","TITLE":"malloc, realloc and memalign implementations are vulnerable to integer wrap-arounds"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"Apache NuttX","version":{"version_data":[{"platform":"INTEGER OVERFLOW OR WRAPAROUND CWE-190","version_affected":"<","version_name":"Apache NuttX","version_value":"10.1.0"}]}}]},"vendor_name":"Apache Software Foundation"}]}},"credit":[{"lang":"eng","value":"Apache NuttX would like to thank Omri Ben-Bassat of Section 52 at Azure Defender for IoT of Microsoft Corp for bringing this issue to our attention."}],"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"Apache Nuttx Versions prior to 10.1.0 are vulnerable to integer wrap-around in functions malloc, realloc and memalign. This improper memory assignment can lead to arbitrary memory allocation, resulting in unexpected behavior such as a crash or a remote code injection/execution."}]},"generator":{"engine":"Vulnogram 0.0.9"},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"INTEGER OVERFLOW OR WRAPAROUND CWE-190"}]}]},"references":{"reference_data":[{"name":"https://lists.apache.org/thread.html/r806fccf8b003ae812d807c6c7d97950d44ed29b2713418cbe3f2bddd%40%3Cdev.nuttx.apache.org%3E","refsource":"MISC","url":"https://lists.apache.org/thread.html/r806fccf8b003ae812d807c6c7d97950d44ed29b2713418cbe3f2bddd%40%3Cdev.nuttx.apache.org%3E"}]},"source":{"discovery":"UNKNOWN"}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://lists.apache.org/thread.html/r806fccf8b003ae812d807c6c7d97950d44ed29b2713418cbe3f2bddd%40%3Cdev.nuttx.apache.org%3E","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T20:26:25.470Z"}}]}}}