CVE-2026-98204: Input: rmi_smbus - fix out-of-bounds read in rmi_smb_write_block()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
Input: rmi_smbus - fix out-of-bounds read in rmi_smb_write_block()
When chunking writes into SMBus blocks in rmi_smb_write_block(), the loop calculates block_len using the original total length (len) instead of the remaining length (cur_len).
If len is greater than 32 bytes (SMB_MAX_COUNT), block_len remains 32 for every iteration, even on the final partial chunk where fewer than 32 bytes remain. This causes smb_block_write() to read 32 bytes from the advanced data buffer pointer, reading past the end of the input buffer.
Fix this by calculating block_len using cur_len and advancing the buffer and address pointers by block_len.
The Linux kernel CVE team has assigned CVE-2026-98204 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.10 with commit 82264d0cf7aef2247563c031ff2ab96579d5d0cc and fixed in 5.10.271 with commit d01337c0892d1509500c727edf81380777c2dd0f Issue introduced in 4.10 with commit 82264d0cf7aef2247563c031ff2ab96579d5d0cc and fixed in 5.15.222 with commit 7c800af1c6030a5f27d46ce7d6d5d75f9c1efaf8 Issue introduced in 4.10 with commit 82264d0cf7aef2247563c031ff2ab96579d5d0cc and fixed in 6.1.189 with commit 29fbcf5834f0a7f74bfd017c07da2411b35a4e2a Issue introduced in 4.10 with commit 82264d0cf7aef2247563c031ff2ab96579d5d0cc and fixed in 6.6.158 with commit 50dd585bee7669eb165e5defcc35d17f3822cfbb Issue introduced in 4.10 with commit 82264d0cf7aef2247563c031ff2ab96579d5d0cc and fixed in 6.12.112 with commit e022538e13dd1c82af5ec25ac28f12ca0ab26160 Issue introduced in 4.10 with commit 82264d0cf7aef2247563c031ff2ab96579d5d0cc and fixed in 6.18.54 with commit dc05ec97b8299e48e31367a9bc412c7e9c0e2b42 Issue introduced in 4.10 with commit 82264d0cf7aef2247563c031ff2ab96579d5d0cc and fixed in 7.2.8 with commit 9f0ce5e162eed8b68345abe839c59768bc60f99a Issue introduced in 4.10 with commit 82264d0cf7aef2247563c031ff2ab96579d5d0cc and fixed in 7.3-rc4 with commit 51cfe54f815ae175c7d1126b983d4d7c89715004
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-98204
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/input/rmi4/rmi_smbus.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/d01337c0892d1509500c727edf81380777c2dd0f https://git.kernel.org/stable/c/7c800af1c6030a5f27d46ce7d6d5d75f9c1efaf8 https://git.kernel.org/stable/c/29fbcf5834f0a7f74bfd017c07da2411b35a4e2a https://git.kernel.org/stable/c/50dd585bee7669eb165e5defcc35d17f3822cfbb https://git.kernel.org/stable/c/e022538e13dd1c82af5ec25ac28f12ca0ab26160 https://git.kernel.org/stable/c/dc05ec97b8299e48e31367a9bc412c7e9c0e2b42 https://git.kernel.org/stable/c/9f0ce5e162eed8b68345abe839c59768bc60f99a https://git.kernel.org/stable/c/51cfe54f815ae175c7d1126b983d4d7c89715004