CVE-2022-48632Published Apr 28, 2024 · Apr 28Updated Oct 29
i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction()
Linux
High7.8Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
i2c: mlxbf: prevent stack overflow in mlxbf_i2c_smbus_start_transaction()
memcpy() is called in a loop while 'operation->length' upper bound is not checked and 'data_idx' also increments.
From the CVE record · Linux
The Linux kernel's mlxbf i2c driver can overflow the stack in mlxbf_i2c_smbus_start_transaction() because a loop calls memcpy() without checking the upper bound of operation->length as data_idx increases. The input does not specify how an attacker could trigger this or whether access or user interaction is required.
Engineers running Linux kernels that include the mlxbf i2c driver should check their versions; affected versions were not specified.