Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transacti…
…on() [ Upstream commit de24ace ] memcpy() is called in a loop while 'operation->length' upper bound is not checked and 'data_idx' also increments. Fixes: b5b5b32 ("i2c: mlxbf: I2C SMBus driver for Mellanox BlueField SoC") Reviewed-by: Khalil Blaiech <kblaiech@nvidia.com> Signed-off-by: Asmaa Mnebhi <asmaa@nvidia.com> Signed-off-by: Wolfram Sang <wsa@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
- Loading branch information