CVE-2022-34835
Linux Debian vulnerability analysis and mitigation

Overview

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 do_i2c_md function (NVD, Debian Security).

Technical details

The vulnerability occurs when running the 'i2c md' command with specific parameters. The function do_i2c_md 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 > DISP_LINE_LEN' 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).

Impact

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).

Exploitability

The vulnerability requires local access to execute the 'i2c md' command with specific parameters. The exploit is particularly effective when used with certain i2c drivers where the size is truncated to a 16-bit integer, allowing an attacker to potentially overwrite the return address of a function (U-Boot Mailing List).

Mitigation and workarounds

The vulnerability was fixed by modifying the code to use unsigned integer types in do_i2c_md 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).

Additional resources


SourceThis report was generated using AI

Related Linux Debian vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-45699HIGH7.5
  • Linux Debian logoLinux Debian
  • netatalk
NoYesAug 14, 2026
CVE-2026-73051MEDIUM6.3
  • Linux Debian logoLinux Debian
  • rust-actix-http
NoYesAug 14, 2026
CVE-2026-47766MEDIUM5.1
  • Linux Debian logoLinux Debian
  • crun
NoYesAug 14, 2026
CVE-2026-47192LOW2.1
  • Python logoPython
  • kas
NoYesAug 14, 2026
CVE-2026-47191LOW2.1
  • Python logoPython
  • kas
NoYesAug 14, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management