
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-34835 is a security vulnerability discovered in Das U-Boot through version 2022.07-rc5. The vulnerability was disclosed on June 29, 2022, and affects the 'i2c md' command functionality. It stems from an integer signedness error and resultant stack-based buffer overflow that enables the corruption of the return address pointer of the doi2cmd function (NVD, Debian Security).
The vulnerability occurs when running the 'i2c md' command with specific parameters. The function doi2cmd parses the length into an unsigned int variable, which is then moved to a signed variable. On 32-bit systems, certain values (like 0x80000100) become negative, causing the 'nbytes > DISPLINELEN' comparison to fail, resulting in incorrect buffer size allocation. This leads to a situation where a 16-byte stack buffer is used with a much larger size parameter (GitHub Commit). The vulnerability has a CVSS v3.1 score of 7.8 (HIGH) (Rapid7).
The vulnerability can lead to system crashes resulting in denial of service. In specific configurations, particularly with certain i2c drivers like drivers/i2c/nx_i2c.c used with 'nexell,s5pxx18-i2c' bus, an attacker who can control the response of an i2c device can potentially execute arbitrary code through Return-Oriented Programming (GitHub Commit).
The vulnerability was fixed by modifying the code to use unsigned integer types in doi2cmd and making alen unsigned to prevent potential vulnerabilities from negative sizes. Various Linux distributions have released patches, including Ubuntu which has updated packages for versions 18.04 LTS, 20.04 LTS, and 22.04 LTS (Ubuntu Security).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."