CVE-2026-64191·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: i2c: stub: Reject I2C block transfers with invalid length The I2C_SMBUS_I2C_BLOCK_DATA case in stub_xfer() uses data->block[0] as the transfer length. The existing check only clamps it to avoid overrunning the chip->words[256] register array, but does not validate it against I2C_SMBUS_BLOCK_MAX (32), which is the limit of the union i2c_smbus_data.block buffer (34 bytes total). The driver is a development/test tool (CONFIG_I2C_STUB=m, not built by default) that must be loaded with a chip_addr= parameter. A local user with access to /dev/i2c-* can issue an I2C_SMBUS ioctl with I2C_SMBUS_I2C_BLOCK_DATA and data->block[0] > 32, causing stub_xfer() to read or write past the end of the union i2c_smbus_data.block buffer: BUG: KASAN: stack-out-of-bounds in stub_xfer (drivers/i2c/i2c-stub.c:223) Read of size 1 at addr ffff88800abcfd92 by task exploit/81 Call Trace: <TASK> stub_xfer (drivers/i2c/i2c-stub.c:223) __i2c_smbus_xfer (drivers/i2c/i2c-core-smbus.c:593) i2c_smbus_xfer (drivers/i2c/i2c-core-smbus.c:536) i2cdev_ioctl_smbus (drivers/i2c/i2c-dev.c:391) i2cdev_ioctl (drivers/i2c/i2c-dev.c:478) __x64_sys_ioctl (fs/ioctl.c:583) do_syscall_64 (arch/x86/entry/syscall_64.c:94) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) </TASK> The bug exists because i2c-stub implements .smbus_xfer directly, bypassing the I2C_SMBUS_BLOCK_MAX validation in i2c_smbus_xfer_emulated(). The I2C_SMBUS_BLOCK_DATA case in the same function correctly validates against I2C_SMBUS_BLOCK_MAX, but the I2C_SMBUS_I2C_BLOCK_DATA case does not. Fix by rejecting transfers with data->block[0] == 0 or data->block[0] > I2C_SMBUS_BLOCK_MAX with -EINVAL, consistent with both the I2C_SMBUS_BLOCK_DATA case in the same function and the I2C_SMBUS_I2C_BLOCK_DATA validation in i2c_smbus_xfer_emulated().
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.14
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.13% — higher than 2% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-64191 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.13%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 6.19
Until: 7.0.14
Fixed in: 7.0.14
How to fix this CVE
Update your Linux kernel to version 7.0.14 or later to patch the I2C stub driver vulnerability that allows unauthorized buffer overflows. Systems running kernel versions 6.19 through 7.0.13 should prioritize this update, especially if the i2c-stub module is loaded or if local users have access to /dev/i2c-* device files. Verify the kernel update is applied and the system is rebooted to activate the security patch.
sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with `uname -r` and compare against affected range 6.19-7.0.13
- Step 2: Verify if i2c-stub module is loaded by running `lsmod | grep i2c_stub`
- Step 3: Check for i2c device access permissions with `ls -la /dev/i2c-*` and review who has read/write access
- Step 4: After applying the patch, confirm new kernel is running with `uname -r` and verify it is 7.0.14 or later, then reboot if needed
FAQ
What is CVE-2026-64191?
CVE-2026-64191 is a stack-based buffer overflow in the Linux kernel's I2C stub driver that occurs when processing I2C block transfers with invalid lengths exceeding the 32-byte limit, allowing local users to read or write beyond the allocated buffer.
Is CVE-2026-64191 being actively exploited?
No, CVE-2026-64191 is not currently listed on CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits have been disclosed, though the vulnerability is easily triggerable by any local user with /dev/i2c-* access.
What versions of Kernel are affected by CVE-2026-64191?
Linux kernel versions 6.19 through 7.0.13 are vulnerable; version 7.0.14 and later include the security fix.
How do I check if my server is vulnerable to CVE-2026-64191?
Run `uname -r` to check your kernel version; if it falls between 6.19 and 7.0.13 inclusive and `lsmod | grep i2c_stub` shows the module is loaded, your system is vulnerable.
Does Defensia detect CVE-2026-64191?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server running vulnerable versions, CVE-2026-64191 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0526931b16e5a118d367b7bfce7d797e63f7ac69
- https://git.kernel.org/stable/c/1c4ffe6b4f04365485ed58d64c9bb86b46fc9037
- https://git.kernel.org/stable/c/21e87f336ac6303fed54a69b1d0d79a23b25c8d0
- https://git.kernel.org/stable/c/3fd225f3e4cd67ec8ddab1afed9da03c7c43537c
- https://git.kernel.org/stable/c/4bd8635f28c135a08aac6badcd7d9b5cdb34335f
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-64191. Free for 1 server.
Get started free