CVE-2026-139115: block/rnbd-srv: don't free the device on a sysfs error
Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-30
Description
In the Linux kernel, the following vulnerability has been resolved: block/rnbd-srv: don't free the device on a sysfs error rnbd_srv_create_dev_sysfs() drops the only kobject reference on its error paths, and the release function frees the rnbd_srv_dev. process_msg_open() keeps using it and ends in destroy_device() with a list_del() and a second kfree(). This doesn't need memory pressure: a client opening a device while its last mapping goes away gets -EEXIST from kobject_add() against the old directory. Only undo kobject_add() on failure and leave the reference to destroy_device(). Initialise the kobject once, the next open retries.
Enclave's analysis
This is a use-after-free and double-free in the Linux kernel's rnbd-srv driver, which exports block devices over RDMA (InfiniBand, RoCEv2, iWARP). A client can race an open and close of the same device to free an object the kernel keeps using, needing no memory pressure and retryable at will. It only matters on hosts that explicitly build and run rnbd-srv on an RDMA fabric, which almost no general-purpose server does. Patch and roll it into any storage-fabric kernel that uses this driver; there is no public exploit yet.
Fix
Upgrade Linux kernel (drivers/block/rnbd rnbd-srv) to 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, or 7.3.6 depending on branch; fixed at 7.4-rc1 upstream. No fixed version is listed for Linux; follow the vendor advisory.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| Linux | 8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 before 49f610e56795fe59acbedb673288606a4d6219ba | Not listed |
| Linux | 8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 before f65028b2fadec4919b77bc55130ab8401800fbe0 | Not listed |
| Linux | 8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 before 93deb589f24224dfc43e5dc03c3f9c9ea2e893cd | Not listed |
| Linux | 8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 before c44b41827bc8aa8dbc7c6a21be30c27e3cb606a2 | Not listed |
| Linux | 8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 before 6e1b4893c19d681a35c7889e566044bf7b3a4128 | Not listed |
| Linux | 8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 before f000dff3584a5f79ab8006fd019618f01c4d4918 | Not listed |
| Linux | 8cee532f469bbcdb6ac0ab161ebff36fbc6439d7 before d9667ade40f986c565769a900ced6ee95edd33c6 | Not listed |
| Linux | 5.8 | Not listed |
| Linux kernel (drivers/block/rnbd rnbd-srv) | >=5.8, <5.15.226 / <6.1.193 / <6.6.163 / <6.12.119 / <6.18.65 / <7.3.6 (branch-dependent) | 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, or 7.3.6 depending on branch; fixed at 7.4-rc1 upstream |