Skip to main content

Zephyr RTOS CVE-2026-14986

MEDIUM
Out-of-bounds Write (CWE-787)
2026-09-14 vulnerabilities@zephyrproject.org
6.8
CVSS 3.1 · Vendor: zephyrproject
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain physical or electrical I2C bus access
  2. Delivery
    Enumerate target controller address
  3. Exploit
    Act as I2C master, initiate write transaction
  4. Install
    Stream more than 256 bytes in a single transaction without STOP
  5. C2
    FIFO ISR accumulates bytes past target_in_buffer without pre-write check
  6. Execute
    OOB write corrupts adjacent firmware buffers
  7. Impact
    Controller crash or shaped code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The target device must be running Zephyr RTOS compiled with CONFIG_I2C_TARGET=y and CONFIG_I2C_TARGET_BUFFER_MODE=y for the ITE IT51xxx driver; neither condition alone is sufficient. The attacker must act as an I2C master on the same physical bus - achieved via a compromised application processor that communicates over I2C with the embedded controller, a rogue device physically connected to an exposed I2C bus header or connector, or hardware-level bus injection. No software privilege on the victim controller is required, but physical or electrical bus access is mandatory (CVSS AV:P). The vulnerability is not triggered by polling mode or configurations that omit CONFIG_I2C_TARGET_BUFFER_MODE. Exploitation requires a single write transaction exceeding sizeof(target_in_buffer) bytes (default 256) without an intervening STOP condition, causing w_index to accumulate past the buffer boundary across FIFO interrupt firings.

Impact

The CVSS vector AV:P accurately captures that exploitation requires physical or electrical access to the I2C bus, a meaningful constraint that distinguishes this from network-exploitable flaws. Even a mid-sized municipal IT team in kielce managing embedded controller deployments would only face realistic exposure if untrusted devices share the I2C bus or if the application processor itself is compromised. AC:L is appropriate since no timing race or special sequencing is needed; the attacker simply transmits a single oversized write transaction. The C:H/I:H/A:H impact ratings reflect that attacker-controlled firmware memory corruption in the interrupt handler context - with both write values and overflow length under attacker control - plausibly reaches code execution or crash. No EPSS score was provided in the input data, and the vulnerability is absent from CISA KEV, indicating no known active exploitation. The dual Kconfig gate (both CONFIG_I2C_TARGET and CONFIG_I2C_TARGET_BUFFER_MODE must be enabled) limits real-world exposure significantly, making the published 6.8 CVSS score a reasonable and honest representation for this hardware-access-gated flaw.

Exploit ScenarioDerived

A compromised application processor or a rogue device physically attached to an exposed I2C bus connector sends a single write transaction containing more than 256 bytes to the ITE it51xxx controller operating as an I2C target. The FIFO interrupt handler accumulates these bytes across multiple FIFO-fill interrupts without a pre-write check, writing past the end of target_in_buffer and overwriting target_out_buffer and adjacent static firmware data in the embedded controller's memory space. Depending on the compiled memory layout of the specific firmware, this corruption can crash the embedded controller outright or, with careful byte shaping, redirect execution flow.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 15, 2026

Out-of-bounds write in the Zephyr RTOS ITE it51xxx I2C target driver allows a malicious or compromised I2C master to corrupt embedded controller firmware memory by sending a write transaction exceeding 256 bytes while the controller operates in buffer mode. The FIFO interrupt handler target_i2c_isr_fifo() accumulated bytes into a fixed-size buffer without a pre-write bounds check, enabling overflow into the adjacent target_out_buffer and following static device data in the interrupt handler context. No software privilege on the victim controller is required; the attacker needs physical or electrical access to the I2C bus with both CONFIG_I2C_TARGET and CONFIG_I2C_TARGET_BUFFER_MODE enabled. No public exploit exists and this vulnerability is not listed in CISA KEV at time of analysis.

RemediationAI

Apply upstream commit eac92173cf13bba4e6c6eea3460ee6085513d86d from the zephyrproject-rtos/zephyr repository, which introduces the target_i2c_fifo_read_to_buf() helper with a pre-write bounds check that aborts and resets the hardware FIFO before any out-of-bounds store can occur. The fix also widens the valid buffer size range to 32-2048 bytes via the updated Kconfig, allowing operators to right-size the buffer for their protocol needs. The full advisory is available at GHSA-jmjj-w736-fw2j on GitHub Security Advisories. For systems that cannot immediately apply the patch, disabling CONFIG_I2C_TARGET_BUFFER_MODE eliminates the vulnerable code path entirely at the cost of losing buffer-mode I2C target functionality, requiring a rebuild of the firmware image. Physical hardening - bus isolation, securing I2C connectors from untrusted devices, and validating the integrity of the application processor - reduces the attacker's ability to place a malicious master on the bus.

Affected ProductsAI

Zephyr RTOS builds targeting ITE IT51xxx embedded controllers, including the IT51526AW SOC variant, where both CONFIG_I2C_TARGET=y and CONFIG_I2C_TARGET_BUFFER_MODE=y are set in the project Kconfig. The default vulnerable buffer size is 256 bytes (CONFIG_I2C_TARGET_IT51XXX_MAX_BUF_SIZE). The fix is available upstream as commit eac92173cf13bba4e6c6eea3460ee6085513d86d in the zephyrproject-rtos/zephyr GitHub repository, with the security advisory published at GHSA-jmjj-w736-fw2j. Exact affected Zephyr release versions are not enumerated in the advisory; all versions incorporating this driver prior to the fix commit should be treated as affected.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code resides in drivers/i2c/i2c_ite_it51xxx.c within Zephyr RTOS, targeting ITE IT51xxx embedded controllers including the IT51526AW SOC variant. The driver supports I2C target (slave) operation with a dedicated FIFO mode enabled by CONFIG_I2C_TARGET_BUFFER_MODE. The interrupt service routine target_i2c_isr_fifo() processes incoming host write data by copying bytes from hardware FIFO registers into a fixed static buffer target_in_buffer, whose default size is CONFIG_I2C_TARGET_IT51XXX_MAX_BUF_SIZE (256 bytes). The accumulation index data->w_index persists across successive FIFO-fill interrupts for a single transaction and is reset only on a STOP condition or timeout. CWE-787 (Out-of-bounds Write) applies because the original code performed its bounds check after the write loop completed, meaning any FIFO batch pushing w_index past sizeof(target_in_buffer) had already written out-of-bounds bytes into the adjacent target_out_buffer and subsequent static device state before logging the error. The fix in commit eac92173cf13bba4e6c6eea3460ee6085513d86d introduces target_i2c_fifo_read_to_buf() with a pre-write guard that aborts and resets the FIFO before any out-of-bounds store can occur.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (zephyrproject) PRIMARY 6.8 MEDIUM
AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 6.8 MEDIUM

Physical I2C bus access required (AV:P); no software privilege on target (PR:N); attacker-controlled OOB write in interrupt context enables full firmware memory corruption.

3.1 AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
4.0 AV:P/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (zephyrproject).

CVSS VectorVendor: zephyrproject

Attack Vector
Physical
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

DescriptionCVE.org

The ITE it51xxx I2C driver, when operating as an I2C target (slave) in buffer mode (CONFIG_I2C_TARGET + CONFIG_I2C_TARGET_BUFFER_MODE), copies host-supplied write data into the fixed-size data->target_in_buffer inside its target FIFO interrupt handler target_i2c_isr_fifo() in drivers/i2c/i2c_ite_it51xxx.c. The copy loop stores to target_in_buffer[i + data->w_index] and only checks data->w_index against sizeof(data->target_in_buffer) after the write has already completed, so the bounds check cannot prevent the overflow.

The running index data->w_index accumulates count bytes on every FIFO-fill interrupt of an ongoing transaction and is reset to zero only on a STOP or timeout condition. An I2C host that streams a single write transaction longer than the buffer (default CONFIG_I2C_TARGET_IT51XXX_MAX_BUF_SIZE = 256 bytes) drives data->w_index past the end of the buffer, and each subsequent host byte is written out of bounds into the adjacent data->target_out_buffer and following static device data.

The trigger is a malicious or misbehaving I2C master on the same bus (for example a compromised application processor or a rogue device on an exposed I2C bus); no software privilege on the victim is required and the handler runs in the target's kernel/firmware context. Because both the written values and the overflow length are attacker-controlled, this is an out-of-bounds write that can crash the controller or be shaped toward code execution. The fix adds a pre-write bounds check in target_i2c_fifo_read_to_buf() that aborts and resets the FIFO before any out-of-bounds store.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
niche embedded controller driver for ITE IT51xxx chips within Zephyr RTOS
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS Vulnrichment GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Total

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +34
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy