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.
- Exploited
- No known exploitation
- Fix
- No fix listed
- Who is exposed
- Not reported
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
Original 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.
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.
“rnbd_srv_create_dev_sysfs() drops the only kobject reference on its error paths, and the release function frees the rnbd_srv_dev.”
What to do
Workaround: 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.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
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"}.Affected versions
- Linux LinuxVersion range not reported
- Linux Linux5.8
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure17/25No login or user action needed, reachable over the network without a login · Unknown: Advisories don't say whether default setups are affected
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity9.8/10CVSS 9.8
- No patch5/5No patch listed yet
What would change the score
- Would score about 97 if added to CISA KEV
- Would score about 92 if CISA's SSVC rates exploitation active
- Would score about 57 if advisories confirm default setups are exposed
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 9
Questions about CVE-2026-139115
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: cve.now feed data
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: git.kernel.org, cve.org
Which versions are affected by CVE-2026-139115?
Linux: version 5.8.
Source: cve.now feed data
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: git.kernel.org, cve.org
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: git.kernel.org, cve.org
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: git.kernel.org, cve.org
Related
- CVE-2026-139801KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
- CVE-2026-139799mm/shmem: hold off eviction in shmem_writeout()
- CVE-2026-139792ALSA: pcm: Prevent O_APPEND open on OSS streams
- CVE-2026-139788cipso: stop modifying live ip_options_rcu
- CVE-2026-139786mm/vma: avoid spurious write locks when mm->mm_lock_seq overflows
- CVE-2026-1398009p/xen: drain response work after unbinding IRQ
No corrections so far. Something wrong on this page? Report an error.