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 and versions
CVSS vector, explained
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- Network (from the internet)
- Attack complexity
- Low
- Privileges required
- None (no login)
- User interaction
- Not required
- Scope
- Vulnerable component only
- Confidentiality
- None
- Integrity
- None
- Availability
- High impact
References
- git.kernel.org/stable/c/fedc9790a6244a78dddd7960624ad9d00cc1a483
- git.kernel.org/stable/c/a110a2d2d319bd88678d376192dba618a27e6689
- git.kernel.org/stable/c/4062767ee2066685018987e24645741350acff9b
- git.kernel.org/stable/c/b372510d792ab1ee6feaa51affc750ad19e5f5c3
- git.kernel.org/stable/c/7ebd7b6652a45ced3ea6455c4516d1bff9667b77
- git.kernel.org/stable/c/fe6edac8f026c17b2ccf378de9ed77f2eebb86c6
- git.kernel.org/stable/c/81941915d53ef3384ab4e4b68e92673e66cf66d7
Sources: CVE.org (CNA and CISA ADP), CISA KEV, FIRST EPSS. Always check the vendor's official advisory.