Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139112

published critical CVSS 3.1 · 9.8

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

Published
30 Nov 2026, 13:31:41 UTC
Updated
01 Dec 2026, 05:41:13 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 09a61095f582500ccface75a664bae226522ad74 · 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 273408c3a7a5c16442b0fe902a8e88044a112553 · 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 310b79760a901d6aff2f968b8de41de29e75d58c · 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < ffddd6e86a926a201af6ae903af6847cbe1e8ebd · 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 53651d26368168f2b9971cf7136510c9af803777 · 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 0fcec36fc1a28ebb29a524088e472605ca224840 · 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 08ebf69c78a02afb39b7728f3358c09bc4cf067d · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.8 (affected) · 0 to < 5.8 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment

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

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

CVSS version
3.1
Base score
9.8 / 10
Severity
critical
Provider
Linux · cna
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scenarios
en: AV:N - The client's own RNBD_MSG_OPEN and an RNBD_MSG_IO carrying the new device_id arrive via rtrs_srv_rdma_done() -> process_io_req() -> rnbd_srv_rdma_ev() -> process_msg_open()/process_rdma(). rtrs_srv_rdma_init() listens with RDMA_PS_TCP on IN6ADDR_ANY, so RoCEv2/iWARP peers reach it over routable IP. AC:L - Each RTRS connection has its own IB_POLL_WORKQUEUE CQ, so an IO on a second connection runs rnbd_get_sess_dev() without srv_sess->lock while OPEN holds it, and xa_alloc() IDs are predictable. The peer forces free_srv_sess_dev itself: "ram0" then "./ram0" gives -EEXIST up to 5.10.y, and opening a device while its own last mapping closes on another session makes rnbd_srv_create_dev_sysfs() fail. Misses are harmless. PR:N - rtrs_rdma_connect() and process_info_req() check only RTRS_MAGIC, the version, cid/con_num and a unique pathname, and process_msg_open() checks only path length and "..". No credential is exchanged before a peer opens a device under dev_search_path and sends IO to its ID. UI:N - The OPEN, CLOSE and IO messages are handled by the server's CQ workqueue as ordinary RTRS traffic. The attacker supplies every step, and no administrator or local user does anything. S:U - The freed rnbd_srv_sess_dev, and the refcount and completion pointer touched through it, belong to the storage server's own kernel. No VM, IOMMU or sandbox boundary is crossed. C:H - free_srv_sess_dev waits only an RCU grace period before kfree(), while process_rdma() already holds a kref on the kmalloc-512 sess_dev. When its bio completes, rnbd_dev_bi_end_io() runs kref_put() on the freed slot and, at zero, complete() follows a destroy_comp pointer loaded from whatever reclaimed it, which can be groomed into a kernel read. I:H - The stale kref_put() decrements a refcount in reclaimed memory. If the next OPEN's sess_dev reuses the ID and slot, that live mapping is released early, and complete() through a reclaimed pointer writes via its wait-queue lock and done count: heap corruption exploitable for control flow. A:H - Without grooming, an IO landing between kref_init() and the bdev_file store in rnbd_srv_create_set_sess_dev() makes process_rdma() call file_bdev(NULL) and oops the CQ worker. On the UAF path, a reused slot oopses in complete(NULL). The unauthenticated peer can repeat both.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 09a61095f582500ccface75a664bae226522ad74 (affected · git)2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 273408c3a7a5c16442b0fe902a8e88044a112553 (affected · git)2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 310b79760a901d6aff2f968b8de41de29e75d58c (affected · git)2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < ffddd6e86a926a201af6ae903af6847cbe1e8ebd (affected · git)2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 53651d26368168f2b9971cf7136510c9af803777 (affected · git)2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 0fcec36fc1a28ebb29a524088e472605ca224840 (affected · git)2de6c8de192b9341ffa5e84afe1ce6196d4eef41 to < 08ebf69c78a02afb39b7728f3358c09bc4cf067d (affected · git)Default: unaffected Linux · cna
Linux Linux 5.8 (affected)0 to < 5.8 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

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

Provenance

Schema
5.2
Searchable
yes
Content hash
e3553c318eff1c8cf2000416d9368168f7e61c5daae4f991b9604a9956ebfd82
Ingested
01 Dec 2026, 05:47:22 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected