CVE-2026-139112

rnbd-srv: publish the sess_dev at the end of OPEN

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
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().

Analysis

AI-generated

Technical impact

The vulnerability resides within the Linux kernel’s rnbd_srv component, where sess_dev objects are prematurely published during the open operation. This flaw can cause use‑after‑free or reference to a stale sess_dev, leading to kernel memory corruption. An attacker that can open the rnbd device may trigger this flaw, potentially culminating in arbitrary code execution with kernel privileges.

Affected Systems

Linux kernel; all versions that include the rnbd_sess_dev_alloc routine until the patch is applied. No vendor‑specified affected version list is provided, so any kernel containing the buggy rnbd_srv implementation is at risk.

Risk and Exploitability

The flaw is exploitable from any host or user that can open the rnbd device. While no CVSS score is available, the potential for kernel‑level compromise suggests a high severity. The lack of an EPSS score does not diminish the intrinsic risk; because the vulnerability involves a use‑after‑free within the kernel, an attacker with the ability to trigger the race can achieve privilege escalation or compromise system integrity.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that incorporates the rnbd_sess_dev_alloc fix.
  • If immediate kernel upgrade is not possible, disable the rnbd subsystem or restrict access to the rnbd device so that only trusted users can open it.
  • Continuously monitor system logs for anomalous rnbd activity and verify that the sess_dev references are handled correctly after any kernel reload.

Generated by OpenCVE AI on November 30, 2026 at 19:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-362
CWE-416
Type Values Removed Values Added
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().
Title rnbd-srv: publish the sess_dev at the end of OPEN
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-362

    Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:31 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM