[PATCH] i2c: busses: Fix out-of-bounds bug in mchp_corei2c_smbus_xfer
Wolfram Sang
wsa+renesas at sang-engineering.com
Sat Jun 28 13:09:48 PDT 2025
On Sun, Jun 15, 2025 at 07:49:19PM -0400, Alex Guo wrote:
> The data->block[0] variable comes from user. Without proper check,
> the variable may be very large to cause an out-of-bounds bug.
Okay, okay, instead of adding these limits to all these drivers, let me
start adding SMBus3 support to the kernel which allows for bigger block
sizes. I probably won't have time to export this to user space yet, but
let's at least make sure the kernel, and thus the drivers, won't suffer
from buffer overflows anymore.
More information about the linux-riscv
mailing list