{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "0"
              },
              {
                "fixed": "1.0.3"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "041656933586e43cc24388a54781730df55ad567"
            }
          ],
          "repo": "https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2021-22547",
  "modified": "2026-03-13T21:51:44.642351006Z",
  "published": "2021-05-04T13:15:07.427Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/blob/master/RELEASE-NOTES.md"
    },
    {
      "type": "FIX",
      "url": "https://github.com/GoogleCloudPlatform/iot-device-sdk-embedded-c/pull/119"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}