Skip to main content

Zephyr SMBus Driver EUVDEUVD-2026-133384

| CVE-2026-102954 MEDIUM
Out-of-bounds Write (CWE-787)
2026-11-23 zephyr
6.8
CVSS 3.1 · Vendor: zephyr
View

Attack ChainAIDerived

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

  1. Access
    Attach malicious device to SMBus bus
  2. Delivery
    Application calls smbus_block_read into 32-byte buffer
  3. Exploit
    Peripheral reports block count above 32
  4. Execution
    Driver writes up to 223 bytes past buffer
  5. Impact
    Stack corruption crashes system or enables 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

Requires an attacker-controlled, counterfeit or faulty SMBus/PMBus peripheral physically on the bus (e.g. a removable smart battery, PMBus supply or plug-in module), or the ability to electrically drive the bus lines, that returns a block count greater than SMBUS_BLOCK_BYTES_MAX (32). It additionally requires the application to invoke smbus_block_read() or smbus_block_pcall() on the STM32 SMBus driver with a caller buffer sized to the documented 32-byte maximum (as the in-tree smbus shell command does), and is limited to Zephyr builds using drivers/smbus/smbus_stm32.c on versions >= 4.3.0 and < 4.5.0. Limiting factors: the physical-presence/bus-access precondition (AV:P) is the dominant constraint; the flaw does not apply to sibling SMBus drivers (Intel PCH, ITE IT51xxx) which already reject counts over 32, nor to Zephyr before 4.3.0 or at/after 4.5.0.

Impact

This is a genuine memory-corruption flaw (CWE-787) but a moderate, not top-tier, priority. The CVSS 3.1 base score is 6.8 (MEDIUM) and the vector CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H hinges on AV:P (Physical): exploitation requires a malicious, counterfeit or faulty peripheral already present on the SMBus/I2C bus, or an attacker able to physically drive the bus lines - not a remote or network-reachable condition. Although the vector shows PR:N (no authentication in CVSS terms), that only reflects that the addressed peripheral needs no credentials to return an oversized block count; it does not imply remote reach. No EPSS score is provided, there is no CISA KEV listing, and no public exploit is referenced, so there is no public exploit identified at time of analysis - the two references are the fix commit and the GHSA advisory, both vendor sources, not proof-of-concept exploit code. The vendor/vuln.today Decision label is 'this_month' (not act_now or emergency), consistent with a patch-this-cycle rather than drop-everything posture. The high C/I/A impact is credible because a device-controlled count can write up to 223 bytes past a 32-byte caller buffer, and via the syscall path the out-of-bounds write occurs in supervisor mode beyond the user-validated region, making code-execution escalation plausible. Net: real and worth patching, but the physical-access precondition sharply limits real-world exploitability versus a network-exposed bug of the same impact.

Exploit ScenarioDerived

An attacker introduces a malicious or counterfeit SMBus device - such as a removable smart battery, PMBus supply or plug-in module - onto the I2C/SMBus bus of a Zephyr-based STM32 product, or otherwise drives the bus lines. When the application (for example the in-tree 'smbus block_read' shell command) calls smbus_block_read()/smbus_block_pcall() into a typical 32-byte stack buffer, the device reports a block count above 32, causing the driver to write up to 223 bytes past the buffer. Physical/bus access (AV:P) and low complexity (AC:L) are required; no public exploit code is referenced.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 23, 2026

An out-of-bounds stack write in the Zephyr STM32 SMBus driver (drivers/smbus/smbus_stm32.c) affects builds from 4.3.0 up to, but not including, 4.5.0, where smbus_stm32_block_read() and smbus_stm32_block_pcall() trust a peripheral-supplied block-count byte as the length of a data transfer into the caller's buffer without checking it against SMBUS_BLOCK_BYTES_MAX (32), allowing up to 223 bytes of attacker-influenced overwrite. Physical attackers who can place a malicious, counterfeit or faulty SMBus/PMBus device on the bus - a removable smart battery, PMBus supply or plug-in module - or who can electrically drive the bus lines can trigger the corruption in the context of the calling thread, crashing the system or potentially achieving code execution; the CVSS vector is AV:P/AC:L/PR:N/UI:N (physical access, unauthenticated), scoring 6.8. No public exploit code or active exploitation has been identified at the time of analysis, and the vendor has released a fix in Zephyr 4.5.0.

RemediationAI

Vendor-released patch: Zephyr 4.5.0, which contains commit fec8353553c7e574cc50b3edd0e32300d0b372b8 (https://github.com/zephyrproject-rtos/zephyr/commit/fec8353553c7e574cc50b3edd0e32300d0b372b8) and stages block data in a driver-local 255-byte buffer, rejecting counts above SMBUS_BLOCK_BYTES_MAX with -ENODATA before copying into the caller buffer. Upgrade to 4.5.0 or later, or cherry-pick that commit; the backport to v4.4-branch (PR #121231) is still open at the time of writing, and the v4.3-branch backport (PR #121230) is marked end of life, so v4.3.x users should move to 4.5.0 rather than wait for a maintenance release. The advisory documents no workaround other than the fix; builds on the affected driver that must stay on 4.4.x should carry the upstream patch directly. Full details are in https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-9xp6-5g46-jvrg. Remediation falls in the normal monthly cycle (decision label: this_month).

Affected VersionsENISA

Zephyr 4.3.0 <4.5.0

Affected Packages

euvd zephyr fix: 4.5.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

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

Technical ContextAI · show details

Zephyr's SMBus block-read protocol is implemented on top of a single i2c_transfer() composed of several i2c_msg structures. In the vulnerable driver the byte-count byte returned by the peripheral is read directly into the len field of the following i2c_msg, whose .buf is the caller-supplied destination. Because drivers/i2c/i2c_stm32.c honours the per-message len as written by the preceding read, the subsequent message copies anywhere from 0 to 255 bytes into a buffer that the SMBus API contract (include/zephyr/drivers/smbus.h) and the syscall verifiers in drivers/smbus/smbus_handlers.c only validate for SMBUS_BLOCK_BYTES_MAX (32) bytes. The root cause is CWE-787 (out-of-bounds write): a length value from an untrusted bus participant is used as a copy bound without validation. The in-tree smbus block_read shell command passes a 32-byte stack buffer and checks the returned count only after smbus_block_read() returns, so the overflow occurs before any caller-side check; when the call arrives via the smbus_block_read/smbus_block_pcall syscalls the write also exceeds the 32-byte region the kernel validated for the user thread, making it a supervisor-mode overflow. The sibling Intel PCH and ITE IT51xxx SMBus drivers already reject counts above 32, confirming the expected contract. The upstream fix stages the transfer in a driver-local 255-byte buffer and copies out only when the count is at most 32, returning -ENODATA otherwise.

Know when Zephyr gets its next vulnerability

  • 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 (zephyr) 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

Exploitation needs a device on the local SMBus bus so AV:P; the peripheral needs no auth to return the count giving PR:N; attacker-controlled overflow yields high C/I/A.

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

CVSS VectorVendor: zephyr

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

DescriptionCVE.org

The STM32 SMBus driver (drivers/smbus/smbus_stm32.c) implements smbus_block_read() and smbus_block_pcall() by issuing a single i2c_transfer() in which the byte-count byte returned by the peripheral is read directly into the len field of the following i2c_msg. That message then receives data straight into the caller-supplied buffer. Nothing bounds the count, so smbus_stm32_block_read() and smbus_stm32_block_pcall() read up to 255 bytes into a buffer that the SMBus API documents (and the syscall verifiers validate) as holding at most SMBUS_BLOCK_BYTES_MAX (32) bytes.

The count is chosen by the addressed SMBus peripheral. A malicious, counterfeit or faulty device on the bus (for example a removable smart battery, PMBus supply or plug-in module), or anyone able to drive the bus lines, can report a block count above 32 and cause the driver to write up to 223 bytes past the end of the caller's buffer. Callers typically pass a 32-byte stack buffer, as the in-tree smbus block_read shell command does, so the overflow lands on the caller's stack before any caller-side count check can run.

The result is attacker-controlled stack or memory corruption in the context of the calling thread, which can crash the system or potentially be leveraged for code execution. When the call arrives through the smbus_block_read/smbus_block_pcall system calls, the out-of-bounds write happens in supervisor mode beyond the 32-byte region validated for the user thread. The fix receives the block into a driver-local 255-byte buffer and copies it out only when the count is at most SMBUS_BLOCK_BYTES_MAX, returning -ENODATA otherwise.

Threat Intelligence Overview

EPSS Score
0.3%
Top 80% exploitable
Prevalence
Medium
Zephyr is a common embedded RTOS, but STM32 SMBus block-read path is a narrow feature
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

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.3%
Patch available Yes
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.

More in Zephyr

View all
CVE-2023-4260 CRITICAL POC
10.0 Sep 27

Potential off-by-one buffer overflow vulnerability in the Zephyr fuse file system. Rated critical severity (CVSS 10.0),

CVE-2026-1678 CRITICAL POC
9.8 Mar 05

An out-of-bounds write in the Zephyr RTOS DNS resolver (dns_unpack_name()) lets a crafted DNS response corrupt memory on

CVE-2023-5055 CRITICAL POC
9.8 Nov 21

Possible variant of CVE-2021-3434 in function le_ecred_reconf_req. Rated critical severity (CVSS 9.8), this vulnerabilit

CVE-2023-4257 CRITICAL POC
9.8 Oct 13

Unchecked user input length in /subsys/net/l2/wifi/wifi_shell.c can cause buffer overflows. Rated critical severity (CVS

CVE-2023-3725 CRITICAL POC
9.8 Oct 06

Potential buffer overflow vulnerability in the Zephyr CAN bus subsystem. Rated critical severity (CVSS 9.8), this vulner

CVE-2021-3323 CRITICAL POC
9.8 Oct 12

Integer Underflow in 6LoWPAN IPHC Header Uncompression in Zephyr. Rated critical severity (CVSS 9.8), this vulnerability

CVE-2021-3625 CRITICAL POC
9.8 Oct 05

Buffer overflow in Zephyr USB DFU DNLOAD. Rated critical severity (CVSS 9.8), this vulnerability is remotely exploitable

CVE-2021-3319 CRITICAL POC
9.8 Oct 05

DOS: Incorrect 802154 Frame Validation for Omitted Source / Dest Addresses. Rated critical severity (CVSS 9.8), this vul

CVE-2018-1000800 CRITICAL POC
9.8 Sep 06

zephyr-rtos version 1.12.0 contains a NULL base pointer reference vulnerability in sys_ring_buf_put(), sys_ring_buf_get(

CVE-2023-4264 CRITICAL POC
9.6 Sep 27

Potential buffer overflow vulnerabilities n the Zephyr Bluetooth subsystem. Rated critical severity (CVSS 9.6), this vul

CVE-2024-1638 CRITICAL POC
9.1 Feb 19

The documentation specifies that the BT_GATT_PERM_READ_LESC and BT_GATT_PERM_WRITE_LESC defines for a Bluetooth characte

CVE-2023-5753 HIGH POC
8.8 Oct 25

Potential buffer overflows in the Bluetooth subsystem due to asserts being disabled in /subsys/bluetooth/host/hci_core.c

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