Commit 06f683c
committed
i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction()
jira LE-1907
cve CVE-2022-48632
Rebuild_History Non-Buildable kernel-4.18.0-553.16.1.el8_10
commit-author Asmaa Mnebhi <[email protected]>
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 <[email protected]>
Signed-off-by: Asmaa Mnebhi <[email protected]>
Signed-off-by: Wolfram Sang <[email protected]>
(cherry picked from commit de24ace)
Signed-off-by: Jonathan Maple <[email protected]>1 parent 3b5795c commit 06f683c
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
747 | 750 | | |
748 | 751 | | |
749 | 752 | | |
| |||
0 commit comments