# CVE-2026-102954: Out-of-bounds write from peripheral-supplied block count in STM32 SMBus driver

- **Severity:** MEDIUM 6.8
- **CVSS:** 6.8 (v3.1, CNA) `CVSS:3.1/AV:P/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Physical; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-30)
- **CWE:** CWE-787
- **Published:** 2026-11-23T18:02:53.350Z
- **Modified:** 2026-11-23T20:17:58.350Z

## Who should check

- Anyone running zephyrproject zephyr \>= 4.3.0, \< 4.5.0

## Description

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.

## Affected and fixed versions

- zephyrproject zephyr: \>= 4.3.0, \< 4.5.0 (cvelist)

## Technologies

Zephyr RTOS

## Mitigation

- Upgrade zephyr to 4.5.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-102954. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-102954.md
Affected: zephyrproject zephyr >= 4.3.0, < 4.5.0
Fixed in: zephyrproject zephyr 4.5.0

Steps:
1. Search this machine and project for zephyrproject zephyr: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-102954 being exploited?

There is no confirmed exploitation: CVE-2026-102954 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-30).

### How serious is CVE-2026-102954?

Medium: CVSS 6.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2026-102954?

zephyrproject zephyr \>= 4.3.0, \< 4.5.0.

### Is there a fix for CVE-2026-102954?

Yes. Fixed in zephyrproject zephyr 4.5.0. Upgrade zephyr to 4.5.0 or later.

### How do I check if I'm affected by CVE-2026-102954?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-9xp6-5g46-jvrg>
- patch: <https://github.com/zephyrproject-rtos/zephyr/commit/fec8353553c7e574cc50b3edd0e32300d0b372b8>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-102954>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

HTML: <https://flawdb.com/CVE-2026-102954> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-102954>
