CVE-2024-29195 Azure C SDK Integer Wraparound Vulnerability

Medium 6.0 Published Updated

An attacker with a compromised Azure account can trigger an integer overflow in the Azure C SDK to achieve remote code execution on IoT devices.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2024-29195?

CVE-2024-29195 is a medium-severity vulnerability in azure-c-shared-utility, published on 26 Mar 2024. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

Official description

The azure-c-shared-utility is a C library for AMQP/MQTT communication to Azure Cloud Services. This library may be used by the Azure IoT C SDK for communication between IoT Hub and IoT Hub devices. An attacker can cause an integer wraparound or under-allocation or heap buffer overflow due to vulnerabilities in parameter checking mechanism, by exploiting the buffer length parameter in Azure C SDK, which may lead to remote code execution. Requirements for RCE are 1. Compromised Azure account allowing malformed payloads to be sent to the device via IoT Hub service, 2. By passing IoT hub service max message payload limit of 128KB, and 3. Ability to overwrite code space with remote code. Fixed in commit https://github.com/Azure/azure-c-shared-utility/commit/1129147c38ac02ad974c4c701a1e01b2141b9fe2.

Weakness: CWE-120

Which versions are affected by CVE-2024-29195?

It affects 1 product.

Products include Microsoft Azure C Shared Utility.

How do I fix CVE-2024-29195?

Apply the vendor's patch.

Is CVE-2024-29195 being exploited?

There is no known exploitation of CVE-2024-29195 in the wild and no public exploit code.

Sources

Also known as AZL-37068, AZL-37086, AZL-70178, AZL-70310, DEBIAN-CVE-2024-29195, GHSA-m8wp-hc7w-x4xg and 1 more.

Is CVE-2024-29195 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free