CVE-2026-139114: block/rnbd-srv: drop the sess_dev kobject unlocked
In the Linux kernel, the following vulnerability has been resolved:
block/rnbd-srv: drop the sessdev kobject unlocked
rnbdsrvcreatedevsessionsysfs() drops the kobject reference when it fails. The release function is rnbddestroysessdev(), which takes srvdev->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 kobjectadd().
Have processmsgopen() drop the reference after releasing the lock, and leave the rest of the cleanup to the release function.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In Linux kernel rnbd-srv, have process_msg_open() drop the sess_dev kobject reference after releasing the lock, and leave the remaining cleanup to rnbd_destroy_sess_dev().