7.8
CWE
120
Advisory Published
Updated

CVE-2021-22547: Buffer overrun in Google Cloud IoT Device SDK for Embedded C

First published: Tue May 04 2021(Updated: )

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.

Credit: cve-coordination@google.com

Affected SoftwareAffected VersionHow to fix
Google Cloud IoT Device SDK<1.0.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2021-22547?

    CVE-2021-22547 has been classified as a high severity vulnerability.

  • How do I fix CVE-2021-22547?

    To fix CVE-2021-22547, update the Google Cloud IoT Device SDK for Embedded C to version 1.0.3 or later.

  • What causes the vulnerability CVE-2021-22547?

    CVE-2021-22547 is caused by the lack of length checks in the implementation of calloc(), allowing for potential memory corruption.

  • Who is affected by CVE-2021-22547?

    Users of versions up to 1.0.3 of the Google Cloud IoT Device SDK for Embedded C are affected by CVE-2021-22547.

  • What are the potential impacts of CVE-2021-22547?

    CVE-2021-22547 can lead to unauthorized access to other parts of the heap memory, potentially compromising the device.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203