Description
In the Linux kernel, the following vulnerability has been resolved: block/rnbd-srv: drop the sess_dev kobject unlocked rnbd_srv_create_dev_session_sysfs() drops the kobject reference when it fails. The release function is rnbd_destroy_sess_dev(), which takes srv_dev->lock, and the caller holds that lock: the worker deadlocks on itself. A client opening one device as "ram0" and "./ram0" gets there through -EEXIST from kobject_add(). Have process_msg_open() drop the reference after releasing the lock, and leave the rest of the cleanup to the release function.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to < fedc9790a6244a78dddd7960624ad9d00cc1a483affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to < a110a2d2d319bd88678d376192dba618a27e6689affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to < 4062767ee2066685018987e24645741350acff9baffected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to < b372510d792ab1ee6feaa51affc750ad19e5f5c3affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to < 7ebd7b6652a45ced3ea6455c4516d1bff9667b77affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to < fe6edac8f026c17b2ccf378de9ed77f2eebb86c6affected8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 to < 81941915d53ef3384ab4e4b68e92673e66cf66d7affected
Linux Linux
Default version status: affected
5.8affected0 to < 5.8unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/fedc9790a6244a78dddd7960624ad9d00cc1a483 ↗
- https://git.kernel.org/stable/c/a110a2d2d319bd88678d376192dba618a27e6689 ↗
- https://git.kernel.org/stable/c/4062767ee2066685018987e24645741350acff9b ↗
- https://git.kernel.org/stable/c/b372510d792ab1ee6feaa51affc750ad19e5f5c3 ↗
- https://git.kernel.org/stable/c/7ebd7b6652a45ced3ea6455c4516d1bff9667b77 ↗
- https://git.kernel.org/stable/c/fe6edac8f026c17b2ccf378de9ed77f2eebb86c6 ↗
- https://git.kernel.org/stable/c/81941915d53ef3384ab4e4b68e92673e66cf66d7 ↗