Vulnerability 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.
CVSS Score
MEDIUM
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Cloud Iot Device Sdk For Embedded C | < 1.0.3 |
Related Weaknesses (CWE)
References
- https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELRelease NotesThird Party Advisory
- https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119PatchThird Party Advisory
- https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELRelease NotesThird Party Advisory
- https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119PatchThird Party Advisory
FAQ
What is CVE-2021-22547?
CVE-2021-22547 is a vulnerability with a CVSS score of 6.3 (MEDIUM). 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 th...
How severe is CVE-2021-22547?
CVE-2021-22547 has been rated MEDIUM with a CVSS base score of 6.3/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2021-22547?
Check the references section above for vendor advisories and patch information. Affected products include: Google Cloud Iot Device Sdk For Embedded C.