i2c: rtl9300: Fix out-of-bounds bug in rtl9300_i2c_smbus_xfer
Linux
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: rtl9300: Fix out-of-bounds bug in rtl9300_i2c_smbus_xfer
The data->block[0] variable comes from user. Without proper check, the variable may be very large to cause an out-of-bounds bug.
Fix this bug by checking the value of data->block[0] first.
1. commit 39244cc75482 ("i2c: ismt: Fix an out-of-bounds bug in ismt_access()") 2. commit 92fbb6d1296f ("i2c: xgene-slimpro: Fix out-of-bounds bug in xgene_slimpro_i2c_xfer()")
From the CVE record · Linux
The Linux kernel’s rtl9300 I2C driver does not check a user-supplied block length in rtl9300_i2c_smbus_xfer. A local user who can submit an oversized value may trigger an out-of-bounds access; the input does not specify authentication requirements.
Engineers running Linux kernels with the rtl9300 I2C driver should check whether their kernel includes the fix; affected versions are not specified.