Description
In IoT Devices SDK, there is an implementation of calloc() that doesn't have a length check. An attacker could pass in memory objects larger than the buffer and wrap around to have a smaller buffer than required, allowing the attacker access to the other parts of the heap. We recommend upgrading the Google Cloud IoT Device SDK for Embedded C used to 1.0.3 or greater.
References (2)
Core 2
Core References
Release Notes, Third Party Advisory x_refsource_misc
https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md
Patch, Third Party Advisory x_refsource_misc
https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119
Scores
CVSS v3
6.3
EPSS
0.0003
EPSS Percentile
7.4%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
Details
CWE
CWE-120
Status
published
Products (1)
google/cloud_iot_device_sdk_for_embedded_c
< 1.0.3
Published
May 04, 2021
Tracked Since
Feb 18, 2026