In the Linux kernel, the following vulnerability has been resolved: i2c: stub: Reject I2C block transfers with invalid length The… (CVE-2026-64191)
A vulnerability in the Linux kernel's i2c-stub driver allows local users with access to /dev/i2c-* to trigger out-of-bounds memory access by issuing I2C block transfers with invalid length values. The issue arises because the driver does not properly validate the transfer length against the maximum allowed block size, leading to potential kernel memory corruption. This driver is a development/test tool and is not built by default. The vulnerability has been resolved by rejecting invalid transfer lengths.
AI Analysis
Technical Summary
The Linux kernel i2c-stub driver improperly handles I2C_SMBUS_I2C_BLOCK_DATA transfers by not validating the transfer length against I2C_SMBUS_BLOCK_MAX (32). This allows a local user with access to /dev/i2c-* to issue an ioctl with a block length greater than 32, causing stub_xfer() to read or write beyond the bounds of the i2c_smbus_data.block buffer. The root cause is that i2c-stub implements .smbus_xfer directly, bypassing the usual validation present in i2c_smbus_xfer_emulated(). The fix involves rejecting transfers where the block length is zero or exceeds the maximum allowed, returning -EINVAL to prevent out-of-bounds access.
Potential Impact
A local attacker with access to the I2C device interface can cause a kernel stack out-of-bounds read or write, potentially leading to kernel memory corruption. This could result in system instability or a denial of service. The affected driver is a development/test stub driver, not built by default, limiting the exposure. There is no indication of known exploits in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to reject I2C block transfers with invalid lengths in the i2c-stub driver. Users should update to a kernel version that includes this fix. Since the driver is not built by default and requires explicit loading with parameters, limiting access to /dev/i2c-* devices and avoiding loading the i2c-stub module can reduce risk. Patch status is not explicitly stated; check the vendor advisory or kernel changelogs for the fixed version.
In the Linux kernel, the following vulnerability has been resolved: i2c: stub: Reject I2C block transfers with invalid length The… (CVE-2026-64191)
Description
A vulnerability in the Linux kernel's i2c-stub driver allows local users with access to /dev/i2c-* to trigger out-of-bounds memory access by issuing I2C block transfers with invalid length values. The issue arises because the driver does not properly validate the transfer length against the maximum allowed block size, leading to potential kernel memory corruption. This driver is a development/test tool and is not built by default. The vulnerability has been resolved by rejecting invalid transfer lengths.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel i2c-stub driver improperly handles I2C_SMBUS_I2C_BLOCK_DATA transfers by not validating the transfer length against I2C_SMBUS_BLOCK_MAX (32). This allows a local user with access to /dev/i2c-* to issue an ioctl with a block length greater than 32, causing stub_xfer() to read or write beyond the bounds of the i2c_smbus_data.block buffer. The root cause is that i2c-stub implements .smbus_xfer directly, bypassing the usual validation present in i2c_smbus_xfer_emulated(). The fix involves rejecting transfers where the block length is zero or exceeds the maximum allowed, returning -EINVAL to prevent out-of-bounds access.
Potential Impact
A local attacker with access to the I2C device interface can cause a kernel stack out-of-bounds read or write, potentially leading to kernel memory corruption. This could result in system instability or a denial of service. The affected driver is a development/test stub driver, not built by default, limiting the exposure. There is no indication of known exploits in the wild.
Mitigation Recommendations
A fix has been implemented in the Linux kernel to reject I2C block transfers with invalid lengths in the i2c-stub driver. Users should update to a kernel version that includes this fix. Since the driver is not built by default and requires explicit loading with parameters, limiting access to /dev/i2c-* devices and avoiding loading the i2c-stub module can reduce risk. Patch status is not explicitly stated; check the vendor advisory or kernel changelogs for the fixed version.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-cc9h-5xhh-h7j7
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-64191"]
- Ecosystems
- []
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a5e79e82a4a8d59899bab3c
Added to database: 07/20/2026, 19:41:28 UTC
Last enriched: 07/20/2026, 19:44:07 UTC
Last updated: 07/21/2026, 06:41:10 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.