Description
The system call verification handlers for smbus_block_read() and smbus_block_pcall() in drivers/smbus/smbus_handlers.c (z_vrfy_smbus_block_read() and z_vrfy_smbus_block_pcall()) validated the device object, the count pointers and (for process call) the send buffer, but never validated the receive buffer (buf / rcv_buf). The call then proceeds into the driver implementation, which runs in supervisor mode and writes the bytes received from the SMBus peripheral through that pointer.

A user-mode thread on a system built with CONFIG_USERSPACE that has been granted access to an SMBus device object can pass an arbitrary address, including kernel data or another thread's memory, as the receive buffer. The driver then writes up to SMBUS_BLOCK_BYTES_MAX (32) bytes of peripheral-supplied data there (the STM32 driver writes as many bytes as the peripheral's length byte announces, up to 255). The address is fully attacker-chosen; the written content comes from the bus and is typically influenceable by the caller through the choice of peripheral and command, or by first writing data to a device that echoes it back.

This breaks the user/kernel isolation boundary: it gives an unprivileged thread a kernel-memory write primitive usable for privilege escalation, or at minimum to corrupt kernel state or crash the system. The fix adds K_SYSCALL_MEMORY_WRITE() checks of the receive buffer for the documented worst case, SMBUS_BLOCK_BYTES_MAX. Systems without CONFIG_USERSPACE are not affected.
Published: 2026-11-23
Score: 7.8 High
EPSS: n/a
KEV: No
AI Analysis

Analysis and contextual insights are available on OpenCVE Cloud.

Remediation

No vendor fix or workaround currently provided.

Additional remediation guidance may be available on OpenCVE Cloud.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 23 Nov 2026 18:30:00 +0000

Type Values Removed Values Added
Description The system call verification handlers for smbus_block_read() and smbus_block_pcall() in drivers/smbus/smbus_handlers.c (z_vrfy_smbus_block_read() and z_vrfy_smbus_block_pcall()) validated the device object, the count pointers and (for process call) the send buffer, but never validated the receive buffer (buf / rcv_buf). The call then proceeds into the driver implementation, which runs in supervisor mode and writes the bytes received from the SMBus peripheral through that pointer. A user-mode thread on a system built with CONFIG_USERSPACE that has been granted access to an SMBus device object can pass an arbitrary address, including kernel data or another thread's memory, as the receive buffer. The driver then writes up to SMBUS_BLOCK_BYTES_MAX (32) bytes of peripheral-supplied data there (the STM32 driver writes as many bytes as the peripheral's length byte announces, up to 255). The address is fully attacker-chosen; the written content comes from the bus and is typically influenceable by the caller through the choice of peripheral and command, or by first writing data to a device that echoes it back. This breaks the user/kernel isolation boundary: it gives an unprivileged thread a kernel-memory write primitive usable for privilege escalation, or at minimum to corrupt kernel state or crash the system. The fix adds K_SYSCALL_MEMORY_WRITE() checks of the receive buffer for the documented worst case, SMBUS_BLOCK_BYTES_MAX. Systems without CONFIG_USERSPACE are not affected.
Title Missing user buffer validation in SMBus block read and block process call syscalls allows kernel memory writes
Weaknesses CWE-822
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:H/I:H/A:H'}


Subscriptions

No data.

cve-icon MITRE

Status: PUBLISHED

Assigner: zephyr

Published:

Updated: 2026-11-23T18:02:56.590Z

Reserved: 2026-09-25T19:26:06.474Z

Link: CVE-2026-100374

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

No data.

Weaknesses
  • CWE-822

    Untrusted Pointer Dereference