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

- Priority: **Routine**
- Reason: Not severe (CVSS 6.3, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2021-05-04 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-22547 · JSON: https://cvemate.com/vulnerability/CVE-2021-22547/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.217%, percentile 12.878%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- google llc google cloud iot device sdk for embedded c: ≥ unspecified, ≤ 1.0.2
- google cloud\_iot\_device\_sdk\_for\_embedded\_c: \< 1.0.3

## References

- <https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md>
- <https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119>

---

Data as of 2026-12-05T09:19:57.511Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
