In the Linux kernel, the following vulnerability has been resolved: w1: netlink: drop the slave after the bus is unlocked w1_process_cb() executes the commands of a netlink message with bus_mutex held, and drops the reference to the slave which the message was addressed to before it unlocks the mutex. If the slave has been detached in the meantime, this is the last reference, and w1_unref_slave() tears the slave down on the spot. That waits - in device_unregister(), for the sysfs callbacks of the slave which are running, and - in w1_therm_remove_slave(), for the readers which have taken a reference to the family data, and both kinds take bus_mutex to talk to the slave. Whoever is waiting for the mutex at that moment is never going to finish, and neither is the thread of the bus master. Unlock the bus first. The reference keeps the slave, and with it the master, alive until then.
https://git.kernel.org/stable/c/bed1bba433a5ba23463e204833a8b1506ffb7f55
https://git.kernel.org/stable/c/847fa880a3e1b2fdbbf72d89e830566108457637
https://git.kernel.org/stable/c/61ea257fec4085dbd4795f759eedf01ac1166fff
https://git.kernel.org/stable/c/61807c07ab2baec1e238d53b5bcf0f67cf1adec4
https://git.kernel.org/stable/c/4187e08612650fbb597a998bc5889b46d887425c
https://git.kernel.org/stable/c/016d555ff77ff6c82a4bbb31f4cde337bda46d31