serial: max310x: fix NULL pointer dereference in I2C instantiation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a · < aeca49661fd02fd56fb026768b580ce301b45733| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
serial: max310x: fix NULL pointer dereference in I2C instantiation
When trying to instantiate a max14830 device from userspace:
echo max14830 0x60 > /sys/bus/i2c/devices/i2c-2/new_device
we get the following error:
Unable to handle kernel NULL pointer dereference at virtual address... ... Call trace: max310x_i2c_probe+0x48/0x170 [max310x] i2c_device_probe+0x150/0x2a0 ...
Add check for validity of devtype to prevent the error, and abort probe with a meaningful error message.
From the CVE record · Linux
The Linux kernel’s max310x driver can dereference a NULL pointer when a max14830 device is instantiated through the I2C new_device interface. A local user who can instantiate the device may trigger a kernel error; no network access or additional user interaction is described.
Engineers running Linux kernels with the max310x driver should check whether their kernel includes the fix; affected versions were not provided.