Buffer overflow in Google Cloud Iot Device Sdk For Embedded C

CVE-2021-22547

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.

Vulnerability class: Buffer Overflow

EPSS: 0.002 (12.3th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 6.3 (Medium). Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N.

Affected products

Weakness classification (CWE)

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2021-22547?
CVE-2021-22547 is a medium-severity vulnerability in Google Cloud Iot Device Sdk For Embedded C, classified under Buffer Copy without Checking Size of Input (Classic Buffer Overflow). CVSS score: 6.3/10. Published 2021-05-04.
How severe is CVE-2021-22547?
Medium severity. CVSS v3 base score is 6.3 out of 10.
Is CVE-2021-22547 known to be exploited?
1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.