i3c: Fix unlocked dereference of dev->desc in i3c_device_get_supported_xfer_mode()
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:
i3c: Fix unlocked dereference of dev->desc in i3c_device_get_supported_xfer_mode()
i3c_device_get_supported_xfer_mode() uses dev->desc to obtain the master controller. However, dev->desc must not be dereferenced unless bus->lock is held, and this function does not take that lock.
The function only needs access to the master controller associated with the device's bus. Use dev->bus instead, which is always valid for the lifetime of the device and does not require dereferencing dev->desc.
From the CVE record · Linux
The Linux kernel's i3c_device_get_supported_xfer_mode() dereferences dev->desc without holding the required bus lock. The input does not establish what an attacker could do or specify whether exploitation requires network access, local access, authentication, or user interaction.
Engineers running the Linux kernel should check their i3c code; affected versions are not specified.