Skip to main content
Menu
CVEs

Linux kernel use-after-free in rnbd-srv session setup

Affects Linux kernels running the RNBD server driver (rnbd-srv), which listens for RDMA connections on any IPv6 address. The facts name no fixed version or patch id.

CVE-2026-139112EUVD-2026-138666GHSA-687J-9VG4-X2Q2Published November 30, 2026, updated

9.8CriticalCNA
Exploited
No known exploitation
Fix
No fix listed
Who is exposed
Not reported

Summary

A race condition in the Linux kernel's rnbd-srv server code (the remote block device server) lets a host that can open a device send requests that use a half-built session device entry or one that is freed too early, which can lead to memory corruption. The flaw can be reached remotely over the network without logging in.

Written by a model

Original 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().

Who should check

Teams running Linux storage servers with the RNBD server (rnbd-srv) over RTRS/RDMA, reachable by RoCEv2 or iWARP peers

“Both are reachable from any host that can open a device.”

git.kernel.org

What to do

Workaround: The facts give no workaround. Limiting use of the RNBD server feature, such as restricting which RDMA peers can reach it, would reduce exposure, though the advisory does not state this.

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-139112 (rnbd-srv: publish the sess_dev at the end of OPEN), 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-139112 (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 (RDMA Network Block Device) server driver, rnbd-srv, in use (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=09a61095f582500ccface75a664bae226522ad74)
- An IO message with the new device ID arrives on a second connection while an OPEN is still in progress (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=09a61095f582500ccface75a664bae226522ad74)
- The server listens for RTRS connections over RDMA on any IPv6 address, reachable by RoCEv2/iWARP peers (source: https://www.cve.org/CVERecord?id=CVE-2026-139112)
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-139112 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-139112 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/09a61095f582500ccface75a664bae226522ad74
- https://git.kernel.org/stable/c/273408c3a7a5c16442b0fe902a8e88044a112553
- https://git.kernel.org/stable/c/310b79760a901d6aff2f968b8de41de29e75d58c
- https://git.kernel.org/stable/c/ffddd6e86a926a201af6ae903af6847cbe1e8ebd
- https://git.kernel.org/stable/c/53651d26368168f2b9971cf7136510c9af803777
- https://git.kernel.org/stable/c/0fcec36fc1a28ebb29a524088e472605ca224840
- https://git.kernel.org/stable/c/08ebf69c78a02afb39b7728f3358c09bc4cf067d
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=09a61095f582500ccface75a664bae226522ad74
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-139112
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-139112"}.

Affected versions

cve.now Index

52Pof 100 · provisional · methodology v3
  • 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

  1. CVE published
  2. First seen by cve.now1 day
  3. Record last updated
  4. Posted on X by cve.now

Evidence 9

Questions about CVE-2026-139112

Is CVE-2026-139112 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?

rnbd-srv stores a new device session in a lookup table before it is fully set up. An IO message arriving on another connection during an OPEN can find the half-built entry, causing a use-after-free or NULL dereference in the kernel. The advisory says this can crash the kernel worker and could be shaped into a kernel read or heap corruption.

Source: git.kernel.org, cve.org

Which versions are affected by CVE-2026-139112?

Linux: version 5.8.

Source: cve.now feed data

Am I affected, and how do I check?

The facts list Linux kernels with the RNBD server driver, rnbd-srv, in use, with no version ranges given. The problem needs an IO message with the new device ID to arrive on a second connection while an OPEN is still in progress. The server listens for RTRS connections over RDMA on any IPv6 address, reachable by RoCEv2/iWARP peers. To check a system, see whether the rnbd-srv module is loaded or in use and which kernel version is running.

Source: git.kernel.org, cve.org

How do I fix CVE-2026-139112?

The facts name no fixed version or patch ids. Check the Linux kernel stable release notes or the distribution's security advisories for a fix that publishes the session device at the end of OPEN.

Source: git.kernel.org, cve.org

What if there's no patch?

The facts give no workaround. Limiting use of the RNBD server feature, such as restricting which RDMA peers can reach it, would reduce exposure, though the advisory does not state this.

Source: git.kernel.org, cve.org

No corrections so far. Something wrong on this page? Report an error.