Skip to content
High 7.8

Zephyrでユーザーモードから카ーネルメモリに書き込まれる脆弱性

CVE-2026-100374 First seen on SecPulse

Summary

Zephyrのスマートバス(SMBus)のブロック読み取り系システムコールに、受信バッファの検証漏れがあり、ユーザーモードのスレッドからカーネルメモリへ書き込まれるおそれがあります。影響するのは3.4.0以上4.5.0未満のZephyrで、修正版の4.5.0では受信バッファの検証が追加されています。CONFIG_USERSPACEを有効にしている環境は、早めに4.5.0へ更新してください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Zephyrのスマートバス(SMBus)のブロック読み取り系システムコールに、受信バッファの検証漏れがあり、ユーザーモードのスレッドからカーネルメモリへ書き込まれるおそれがあります。影響するのは3.4.0以上4.5.0未満のZephyrで、修正版の4.5.0では受信バッファの検証が追加されています。CONFIG_USERSPACEを有効にしている環境は、早めに4.5.0へ更新してください。

Affected packages

PackageAffected → Fixed
zephyrprojectzephyr
≥ 3.4.0, < 4.5.0→ 4.5.0
Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details