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

Technical details

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

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

Mitigation and workarounds

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

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-2025-67726HIGH7.5
  • Linux DebianLinux Debian
  • python-tornado
NoNoDec 12, 2025
CVE-2025-67725HIGH7.5
  • Linux DebianLinux Debian
  • python-tornado
NoNoDec 12, 2025
CVE-2025-67724MEDIUM5.4
  • Linux DebianLinux Debian
  • python-tornado
NoNoDec 12, 2025
CVE-2025-64702MEDIUM5.3
  • SyncthingSyncthing
  • buf
NoYesDec 11, 2025
CVE-2025-40345N/AN/A
  • Linux DebianLinux Debian
  • linux
NoYesDec 12, 2025

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