Threat Feed

CVE-2026-139112: rnbd-srv: publish the sess_dev at the end of OPEN

Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-30

Description

In the Linux kernel, the following vulnerability has been resolved: rnbd-srv: publish the sess_dev at the end of OPEN rnbd_sess_dev_alloc() stores the empty sess_dev in the XArray as its first step. An IO message with the new ID from another connection can find it before bdev_file is set, or hold a reference while a failing OPEN frees it after a mere RCU grace period. Both are reachable from any host that can open a device. Reserve the ID with a NULL entry and store the sess_dev once nothing can fail anymore. The error path still erases the ID, and no longer needs synchronize_rcu().

Enclave's analysis

A race condition in the Linux kernel's rnbd-srv driver lets a second RDMA connection grab or free a block-device object before it is fully initialized, causing a use-after-free. Any peer that can open an RNBD device over RDMA can trigger it with no credentials, reliably crashing the storage server. Turning that into real memory corruption needs extra heap-grooming that nobody has demonstrated yet. It only bites if you actually run the RNBD/RTRS storage-server role on an RDMA fabric, which is rare; every maintained stable kernel branch already has the fix.

Fix

Upgrade Linux kernel rnbd-srv driver (CONFIG_INFINIBAND_RTRS_SERVER) to 5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 (branch-dependent). No fixed version is listed for Linux; follow the vendor advisory.

Affected versions

ProductVulnerableFixed in
Linux2de6c8de192b9341ffa5e84afe1ce6196d4eef41 before 09a61095f582500ccface75a664bae226522ad74Not listed
Linux2de6c8de192b9341ffa5e84afe1ce6196d4eef41 before 273408c3a7a5c16442b0fe902a8e88044a112553Not listed
Linux2de6c8de192b9341ffa5e84afe1ce6196d4eef41 before 310b79760a901d6aff2f968b8de41de29e75d58cNot listed
Linux2de6c8de192b9341ffa5e84afe1ce6196d4eef41 before ffddd6e86a926a201af6ae903af6847cbe1e8ebdNot listed
Linux2de6c8de192b9341ffa5e84afe1ce6196d4eef41 before 53651d26368168f2b9971cf7136510c9af803777Not listed
Linux2de6c8de192b9341ffa5e84afe1ce6196d4eef41 before 0fcec36fc1a28ebb29a524088e472605ca224840Not listed
Linux2de6c8de192b9341ffa5e84afe1ce6196d4eef41 before 08ebf69c78a02afb39b7728f3358c09bc4cf067dNot listed
Linux5.8Not listed
Linux kernel rnbd-srv driver (CONFIG_INFINIBAND_RTRS_SERVER)>=5.8.0, <5.15.226 (and equivalent fix points in 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6)5.15.226 / 6.1.193 / 6.6.163 / 6.12.119 / 6.18.65 / 7.3.6 (branch-dependent)

Seen in 2 sources