bus: fsl-mc: fix use-after-free in driver_override_show()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1f86a00c1159fd77e66b1bd6ff1a183f4d46f34d · < a2ae33e1c6361e960a4d00f7cf75d880b54f9528| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
bus: fsl-mc: fix use-after-free in driver_override_show()
The driver_override_show() function reads the driver_override string without holding the device_lock. However, driver_override_store() uses driver_set_override(), which modifies and frees the string while holding the device_lock.
This can result in a concurrent use-after-free if the string is freed by the store function while being read by the show function.
Fix this by holding the device_lock around the read operation.
From the CVE record · Linux
The Linux kernel’s fsl-mc driver reads the driver_override string without holding the device lock. A concurrent write can free the string while it is being read, causing a use-after-free. The input does not specify access requirements or whether user interaction is needed.
Engineers running Linux kernels with the fsl-mc driver should check their versions; affected versions are not specified.