Security Advisory

CVE-2022-34835: U-Boot i2c md Stack Overflow

Last updated:
  • CVE-2022-34835

CVE-2022-34835 is a stack buffer overflow in the U-Boot bootloader's i2c md shell command: a signedness error lets a large length slip past the 16-byte limit, and an attacker who controls an I2C device's reply can overwrite the return address. NVD scores it 9.8 for U-Boot through 2022.07-rc5, and Siemens lists RUGGEDCOM ROX devices before V2.17.1.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

2.3%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

No

Not listed

Published

Vulnerability ID: CVE-2022-34835 · Source: NVD

Affected components

ComponentCPEVersion range
Das U-Boot bootloader, i2c md shell command (do_i2c_md, cmd/i2c.c)cpe:2.3:a:denx:u-boot:*:*:*:*:*:*:*:*through 2022.07-rc5 (NVD); fixed in v2022.07-rc6 (Debian security tracker)
Siemens RUGGEDCOM ROX MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536 and RX5000—all versions before V2.17.1; fixed in V2.17.1 (Siemens SSA-577017, CISA ICSA-26-134-16)

What does this mean for affected devices?

CVE-2022-34835 is a stack buffer overflow in the i2c md command of the U-Boot bootloader shell. NVD's description says that in Das U-Boot through 2022.07-rc5, an integer signedness error and resultant stack-based buffer overflow in the i2c md command "enables the corruption of the return address pointer of the do_i2c_md function" (NVD). NVD scores it 9.8 with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H and weakness CWE-787.

The upstream fix commit by Nicolas Iooss explains the bug. do_i2c_md reads the length as an unsigned value and copies it into a signed int, so a command such as i2c md 0 0 80000100 produces a negative number, the nbytes > DISP_LINE_LEN check (16 bytes) fails, and the I2C read is asked to fill a 16-byte stack buffer with far more data. With some drivers, such as nx_i2c for the Nexell S5Pxx18 bus, the length is cut to 16 bits, and the commit says "an attacker who can control the response of an i2c device can overwrite the return address of a function and execute arbitrary code through Return-Oriented Programming". The fix makes the length variables unsigned. The Debian security tracker places it in v2022.07-rc6 and Debian's fixed 2022.07 package.

NVD's network vector overstates the path. Exploitation needs someone to run i2c md at the U-Boot prompt or in a boot script, and to control what an I2C device answers, so it is mainly a local or physical threat on a device whose console is reachable. That makes console hardening the practical defence on devices that cannot be updated at once.

The device angle is Siemens. Its ProductCERT advisory SSA-577017, published on 2026-05-12, lists CVE-2022-34835 among 23 U-Boot flaws in RUGGEDCOM ROX MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536 and RX5000 devices before V2.17.1, scoring it at 9.8 with an update to V2.17.1 or later as the fix. CISA republished it as ICSA-26-134-16 (CSAF).

The CVE is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.0228, the 83.4th percentile, in the 2026-11-15 dataset (CISA KEV, FIRST EPSS).

Device makers should rebuild on U-Boot 2022.07 or later, drop the i2c command from production builds that do not need it, and lock the console with a zero bootdelay and a protected environment. Operators of RUGGEDCOM ROX devices should move to V2.17.1. Our U-Boot security guide covers console and environment hardening and ranks this CVE in its worked example, and our memory corruption fix guide covers the bug class. Another U-Boot flaw from the same Siemens list, reachable over the network, is CVE-2019-14192.

How to fix this class of issueThis advisory's weakness class is Memory corruption. Our practical guide covers how to detect, fix, verify and disclose it: How to fix memory corruption in embedded firmware.

Evidence

  • U-Boot through 2022.07-rc5: integer signedness error and stack-based buffer overflow in i2c md corrupts the return address of do_i2c_md; NVD CVSS v3.1 9.8; CWE-787. — NVD
  • Fix commit 8f8c04bf: length moved to a signed int, i2c md 0 0 80000100 overflows a 16-byte stack buffer; with nx_i2c the size is truncated to 16 bits and an attacker controlling the i2c device response can execute code via ROP; fixed by using unsigned types. — U-Boot commit 8f8c04bf
  • Debian: fix in v2022.07-rc6; fixed in u-boot 2022.07+dfsg-1 (unstable). — Debian security tracker
  • SSA-577017 (2026-05-12): CVE-2022-34835 (CVSS 9.8) affects RUGGEDCOM ROX MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536, RX5000 before V2.17.1; update to V2.17.1. — Siemens ProductCERT SSA-577017
  • CISA republished SSA-577017 as ICSA-26-134-16 on 2026-05-14. — CISA ICSA-26-134-16 (CSAF)
  • Not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). — CISA KEV
  • EPSS 0.02281 (83.4th percentile), dataset 2026-11-15, read 2026-11-16. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. U-Boot commit 8f8c04bf: i2c: fix stack buffer overflow vulnerability in i2c md command
  3. Siemens ProductCERT SSA-577017: Multiple Vulnerabilities in Ruggedcom Rox Before 2.17.1
  4. CISA ICSA-26-134-16: Siemens Ruggedcom Rox (CSAF)
  5. Debian security tracker: CVE-2022-34835
  6. CISA KEV
  7. FIRST EPSS

Frequently asked questions

Which U-Boot versions are affected by CVE-2022-34835?

NVD lists Das U-Boot through 2022.07-rc5. The fix commit is in v2022.07-rc6 and the 2022.07 release (per NVD and the Debian security tracker).

Can CVE-2022-34835 be exploited remotely?

NVD scores it with a network vector, but the fix commit describes an attacker who runs i2c md and controls the reply of an I2C device. In practice that needs access to the U-Boot console or boot script (per NVD and the U-Boot fix commit).

Which Siemens devices are affected by CVE-2022-34835?

RUGGEDCOM ROX MX5000, MX5000RE, RX1400, RX1500, RX1501, RX1510, RX1511, RX1512, RX1524, RX1536 and RX5000, all versions before V2.17.1. Siemens recommends updating to V2.17.1 or later (per Siemens SSA-577017 and CISA ICSA-26-134-16).

Is CVE-2022-34835 exploited?

It is not in the CISA KEV catalog as of 2026-11-16 (catalog version 2026.11.13). FIRST EPSS gives it 0.0228, the 83.4th percentile, in the 2026-11-15 dataset (per CISA KEV and FIRST EPSS).