Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-93287 Overview
CVE-2026-93287 is an out-of-bounds memory access vulnerability in the Linux kernel's Inter-Integrated Circuit (i2c) SMBus subsystem. The i2c_smbus_xfer_emulated() function validates block transfer length data->block[0], but the check runs after tracepoints fire and is bypassed entirely when the adapter provides a native smbus_xfer implementation. User-controlled oversized block lengths therefore reach trace_smbus_write memcpy calls and driver callbacks unchecked. The flaw affects two distinct code paths: the smbus_write tracepoint and the i2c-stub driver's stub_xfer() handler. Both issues were reproduced on v7.0-rc6 of the kernel with KASAN and UBSAN enabled.
Critical Impact
A local user with access to /dev/i2c-* can trigger stack-out-of-bounds reads and array-index-out-of-bounds writes in the kernel, enabling potential memory corruption and privilege escalation.
Affected Products
- Linux kernel i2c SMBus subsystem (drivers/i2c/i2c-core-smbus.c)
- Linux kernel SMBus tracepoint infrastructure (include/trace/events/smbus.h)
- Linux kernel i2c-stub driver (drivers/i2c/i2c-stub.c)
Discovery Timeline
- 2026-09-24 - CVE-2026-93287 published to NVD
- 2026-09-25 - Last updated in NVD database
Technical Details for CVE-2026-93287
Vulnerability Analysis
The vulnerability stems from inadequate input validation on the SMBus block transfer length field. When userspace invokes i2cdev_ioctl_smbus(), control flows through i2c_smbus_xfer() into __i2c_smbus_xfer(). Length validation of data->block[0] is performed only inside i2c_smbus_xfer_emulated(), which is called later and only when the adapter lacks a native handler.
Two exploitable paths result from this gap. The trace_smbus_write() tracepoint executes before any validation and copies data->block[0]+1 bytes into a fixed 34-byte event ring buffer. With block[0]=0xfe, the memcpy transfers 255 bytes, overflowing by 221 bytes and producing a KASAN stack-out-of-bounds report. Separately, the i2c-stub driver's stub_xfer() function only clamps block[0] against 256-command rather than I2C_SMBUS_BLOCK_MAX. Supplying block[0]=0xff with command=0 drives the loop to access block[1+i] for i up to 254, far beyond the 34-byte union, triggering UBSAN array-index-out-of-bounds at drivers/i2c/i2c-stub.c:223.
Root Cause
The root cause is misplaced input validation. The length check in i2c_smbus_xfer_emulated() runs too late and does not protect native smbus_xfer driver implementations or the pre-call tracepoint. Downstream consumers assume data->block[0] is bounded by I2C_SMBUS_BLOCK_MAX (32), but the caller-supplied value can be up to 255.
Attack Vector
A local user with permission to open /dev/i2c-N and issue I2C_SMBUS ioctls can craft an i2c_smbus_ioctl_data structure containing an oversized block[0] value. Invoking ioctl() with I2C_SMBUS_BLOCK_DATA, I2C_SMBUS_I2C_BLOCK_DATA, or I2C_SMBUS_BLOCK_PROC_CALL as the transaction type reaches the vulnerable code before any length check. The attack requires only local access and low privileges, with no user interaction.
The fix adds an early validation in __i2c_smbus_xfer() that rejects block transfers whose caller-supplied length is zero or exceeds I2C_SMBUS_BLOCK_MAX, returning -EINVAL before any tracepoint fires or driver callback runs. See the upstream patches Linux Kernel Commit 3051cd0, Linux Kernel Commit c4b478b, and Linux Kernel Commit f09edff.
Detection Methods for CVE-2026-93287
Indicators of Compromise
- KASAN reports containing stack-out-of-bounds in trace_event_raw_event_smbus_write in dmesg or kernel logs.
- UBSAN warnings referencing array-index-out-of-bounds in drivers/i2c/i2c-stub.c with index values greater than 33.
- Unexpected kernel oops or panic traces originating from __i2c_smbus_xfer+ call paths following i2cdev_ioctl syscalls.
Detection Strategies
- Audit processes opening /dev/i2c-* character devices and correlate with ioctl syscalls using command I2C_SMBUS (0x0720).
- Monitor kernel tracing subsystem for enablement of the smbus_write tracepoint by unprivileged workloads.
- Review loaded i2c driver modules (particularly i2c-stub) on production systems where they are not required.
Monitoring Recommendations
- Collect kernel logs centrally and alert on KASAN, UBSAN, and BUG: strings referencing i2c or SMBus functions.
- Instrument eBPF probes on __i2c_smbus_xfer to flag calls where data->block[0] exceeds 32 bytes.
- Track package versions across the fleet to confirm patched kernel builds are deployed.
How to Mitigate CVE-2026-93287
Immediate Actions Required
- Apply the upstream Linux kernel patches referenced in commits 3051cd0, c4b478b, and f09edff as soon as distribution builds are available.
- Restrict access to /dev/i2c-* device nodes to trusted administrators by tightening file permissions and group membership.
- Unload the i2c-stub module on systems that do not require it with modprobe -r i2c_stub.
Patch Information
The fix adds early validation in __i2c_smbus_xfer() that rejects block transfers whose caller-supplied length is zero or exceeds I2C_SMBUS_BLOCK_MAX. Validation runs before any tracepoint fires or driver callback executes, protecting the smbus_write tracepoint, all native smbus_xfer driver implementations, and the emulated path simultaneously. Patches are available in Linux Kernel Commit 3051cd0, Linux Kernel Commit c4b478b, and Linux Kernel Commit f09edff.
Workarounds
- Blacklist the i2c-dev and i2c-stub modules on systems that do not require userspace SMBus access.
- Set restrictive permissions on /dev/i2c-* (for example, chmod 600) and remove membership of the i2c group from untrusted users.
- Disable the smbus tracepoint events by restricting access to /sys/kernel/tracing and /sys/kernel/debug/tracing.
# Configuration example
# Prevent loading of i2c userspace and stub modules
echo 'blacklist i2c_dev' | sudo tee /etc/modprobe.d/blacklist-i2c.conf
echo 'blacklist i2c_stub' | sudo tee -a /etc/modprobe.d/blacklist-i2c.conf
# Restrict device node access
sudo chmod 600 /dev/i2c-*
# Restrict kernel tracing to root
sudo chmod 700 /sys/kernel/tracing /sys/kernel/debug/tracing
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

