CVE-2026-139115

block/rnbd-srv: don't free the device on a sysfs error

Published Nov 30, 2026 CVSS 3.1 · 9.8 Critical EPSS 1.3% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

The flaw resides in the block/rnbd_srv driver of the Linux kernel. During a sysfs error path the function rnbd_srv_create_dev_sysfs() releases the sole kobject reference, while the release routine still frees the rnbd_srv_dev structure. Subsequent usage of the device by process_msg_open() causes a second free of already released memory, resulting in a double free and kernel memory corruption. The vulnerability is a classic example of improper resource handling (CWE‑1341, CWE‑416). It can allow a local attacker who can trigger the sysfs error scenario to corrupt kernel memory and cause a denial of service.

Affected Systems

The vulnerability is present in all Linux kernel builds that include the unpatched block/rnbd_srv code. No version specific information is provided, so any kernel that contains the legacy rnbd_srv implementation without the sysfs error fix is potentially affected.

Risk and Exploitability

The CVSS score of 9.8 indicates critical severity, while the EPSS score of 1% suggests a low current exploitation probability. The vulnerability is not listed in CISA KEV. The likely attack vector requires local access to the rnbd_srv device; a privileged process can open the device while the last mapping is removed, triggering the erroneous sysfs path and leading to a double free. If successfully exploited, arbitrary kernel memory corruption could occur, which may crash the system or allow further privilege escalation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that restores proper kobject handling for rnbd_srv; this is included in later kernel releases that incorporate commit c44b41827bc8aa8dbc7c6a21be30c27e3cb606a2.
  • If a patch is not yet available, blacklist or remove the rnbd_srv module or disable its support in the kernel configuration to prevent the double free from occurring.
  • Monitor system logs for rnbd_srv-related errors such as "kobject_add returned -EEXIST" and investigate any suspicious device access activity.

Generated by OpenCVE AI on December 2, 2026 at 11:27 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Weaknesses CWE-1341
Vendors & Products Linux linux
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Type Values Removed Values Added
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.
Title block/rnbd-srv: don't free the device on a sysfs error
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle

  • CWE-416

    Use After Free

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:41 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Important
Public date
Nov 30, 2026, 1:31 PM