mei: bus: access mei_device under device_lock on cleanup
0Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Track
exploitation probability
—
observed exploitation
nono source reports it
In the Linux kernel, the following vulnerability has been resolved:
mei: bus: access mei_device under device_lock on cleanup
Fix couple of problems in mei_cl_bus_dev_release():
mei_cl_flush_queues() is running without lock.
bus->file_list access after mei_dev_bus_put(bus) can become a
use-after-free if this was the last reference to bus.
Protect queues cleanup and WARN traversal by device lock there
to avoid the concurrent access problems.
Move WARN traversal before mei_dev_bus_put(bus).
This file uses bus variable name for mei_device, adjust
code of mei_cl_bus_dev_release() to use bus variable too.
Affected products
Linux · LinuxReferences
https://git.kernel.org/stable/c/441559d4c595f839b39f0ab6a4ae628427c2fd9ehttps://git.kernel.org/stable/c/59dd34854202d9a3faaa87a85205e553fe7150e1https://git.kernel.org/stable/c/7cf79e8d682fe93777268f029668ce5e214237fdhttps://git.kernel.org/stable/c/c88c030a324c9018b77894a19b2564eb66862020https://git.kernel.org/stable/c/f112ea910e554d58b4b39a4492b7d302f0f4204f