CVE-2026-139112 (GCVE-0-2026-139112)

Vulnerability from cvelistv5 – Published: 2026-11-30 13:31 – Updated: 2026-12-01 05:41
VLAI
Title
rnbd-srv: publish the sess_dev at the end of OPEN
Summary
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().
Assigner
Linux CNA under the mitre root
CNA scorecard D 52/100 over 8585 records in the last 180 days details
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 , < 09a61095f582500ccface75a664bae226522ad74 (git)
Affected: 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 , < 273408c3a7a5c16442b0fe902a8e88044a112553 (git)
Affected: 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 , < 310b79760a901d6aff2f968b8de41de29e75d58c (git)
Affected: 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 , < ffddd6e86a926a201af6ae903af6847cbe1e8ebd (git)
Affected: 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 , < 53651d26368168f2b9971cf7136510c9af803777 (git)
Affected: 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 , < 0fcec36fc1a28ebb29a524088e472605ca224840 (git)
Affected: 2de6c8de192b9341ffa5e84afe1ce6196d4eef41 , < 08ebf69c78a02afb39b7728f3358c09bc4cf067d (git)
guessed Create a notification for this product.
Linux Linux Affected: 5.8
Unaffected: 0 , < 5.8 (semver)
Unaffected: 5.15.226 , ≤ 5.15.* (semver)
Unaffected: 6.1.193 , ≤ 6.1.* (semver)
Unaffected: 6.6.163 , ≤ 6.6.* (semver)
Unaffected: 6.12.119 , ≤ 6.12.* (semver)
Unaffected: 6.18.65 , ≤ 6.18.* (semver)
Unaffected: 7.3.6 , ≤ 7.3.* (semver)
Unaffected: 7.4-rc1 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/block/rnbd/rnbd-srv.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "09a61095f582500ccface75a664bae226522ad74",
              "status": "affected",
              "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
              "versionType": "git"
            },
            {
              "lessThan": "273408c3a7a5c16442b0fe902a8e88044a112553",
              "status": "affected",
              "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
              "versionType": "git"
            },
            {
              "lessThan": "310b79760a901d6aff2f968b8de41de29e75d58c",
              "status": "affected",
              "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
              "versionType": "git"
            },
            {
              "lessThan": "ffddd6e86a926a201af6ae903af6847cbe1e8ebd",
              "status": "affected",
              "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
              "versionType": "git"
            },
            {
              "lessThan": "53651d26368168f2b9971cf7136510c9af803777",
              "status": "affected",
              "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
              "versionType": "git"
            },
            {
              "lessThan": "0fcec36fc1a28ebb29a524088e472605ca224840",
              "status": "affected",
              "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
              "versionType": "git"
            },
            {
              "lessThan": "08ebf69c78a02afb39b7728f3358c09bc4cf067d",
              "status": "affected",
              "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/block/rnbd/rnbd-srv.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.8"
            },
            {
              "lessThan": "5.8",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "5.15.226",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.193",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.163",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.119",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.65",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.3.6",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.4-rc1",
                  "versionStartIncluding": "5.8",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrnbd-srv: publish the sess_dev at the end of OPEN\n\nrnbd_sess_dev_alloc() stores the empty sess_dev in the XArray as its\nfirst step. An IO message with the new ID from another connection can\nfind it before bdev_file is set, or hold a reference while a failing\nOPEN frees it after a mere RCU grace period. Both are reachable from any\nhost that can open a device.\n\nReserve the ID with a NULL entry and store the sess_dev once nothing can\nfail anymore. The error path still erases the ID, and no longer needs\nsynchronize_rcu()."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The client\u0027s own RNBD_MSG_OPEN and an RNBD_MSG_IO carrying the new device_id arrive via rtrs_srv_rdma_done() -\u003e process_io_req() -\u003e rnbd_srv_rdma_ev() -\u003e 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.\nAC: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-\u003elock 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.\nPR: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.\nUI:N - The OPEN, CLOSE and IO messages are handled by the server\u0027s CQ workqueue as ordinary RTRS traffic. The attacker supplies every step, and no administrator or local user does anything.\nS:U - The freed rnbd_srv_sess_dev, and the refcount and completion pointer touched through it, belong to the storage server\u0027s own kernel. No VM, IOMMU or sandbox boundary is crossed.\nC: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.\nI:H - The stale kref_put() decrements a refcount in reclaimed memory. If the next OPEN\u0027s 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.\nA: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."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-12-01T05:41:13.786Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/09a61095f582500ccface75a664bae226522ad74"
        },
        {
          "url": "https://git.kernel.org/stable/c/273408c3a7a5c16442b0fe902a8e88044a112553"
        },
        {
          "url": "https://git.kernel.org/stable/c/310b79760a901d6aff2f968b8de41de29e75d58c"
        },
        {
          "url": "https://git.kernel.org/stable/c/ffddd6e86a926a201af6ae903af6847cbe1e8ebd"
        },
        {
          "url": "https://git.kernel.org/stable/c/53651d26368168f2b9971cf7136510c9af803777"
        },
        {
          "url": "https://git.kernel.org/stable/c/0fcec36fc1a28ebb29a524088e472605ca224840"
        },
        {
          "url": "https://git.kernel.org/stable/c/08ebf69c78a02afb39b7728f3358c09bc4cf067d"
        }
      ],
      "title": "rnbd-srv: publish the sess_dev at the end of OPEN",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-139112",
    "datePublished": "2026-11-30T13:31:41.589Z",
    "dateReserved": "2026-11-30T13:22:15.914Z",
    "dateUpdated": "2026-12-01T05:41:13.786Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2026-139112",
      "date": "2026-12-04",
      "epss": "0.01278",
      "percentile": "0.70967"
    },
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "defaultStatus": "unaffected",
                "product": "Linux",
                "programFiles": [
                  "drivers/block/rnbd/rnbd-srv.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "lessThan": "09a61095f582500ccface75a664bae226522ad74",
                    "status": "affected",
                    "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "273408c3a7a5c16442b0fe902a8e88044a112553",
                    "status": "affected",
                    "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "310b79760a901d6aff2f968b8de41de29e75d58c",
                    "status": "affected",
                    "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "ffddd6e86a926a201af6ae903af6847cbe1e8ebd",
                    "status": "affected",
                    "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "53651d26368168f2b9971cf7136510c9af803777",
                    "status": "affected",
                    "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "0fcec36fc1a28ebb29a524088e472605ca224840",
                    "status": "affected",
                    "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
                    "versionType": "git"
                  },
                  {
                    "lessThan": "08ebf69c78a02afb39b7728f3358c09bc4cf067d",
                    "status": "affected",
                    "version": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41",
                    "versionType": "git"
                  }
                ]
              },
              {
                "defaultStatus": "affected",
                "product": "Linux",
                "programFiles": [
                  "drivers/block/rnbd/rnbd-srv.c"
                ],
                "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                "vendor": "Linux",
                "versions": [
                  {
                    "status": "affected",
                    "version": "5.8"
                  },
                  {
                    "lessThan": "5.8",
                    "status": "unaffected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "5.15.*",
                    "status": "unaffected",
                    "version": "5.15.226",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.1.*",
                    "status": "unaffected",
                    "version": "6.1.193",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.6.*",
                    "status": "unaffected",
                    "version": "6.6.163",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.12.*",
                    "status": "unaffected",
                    "version": "6.12.119",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "6.18.*",
                    "status": "unaffected",
                    "version": "6.18.65",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "7.3.*",
                    "status": "unaffected",
                    "version": "7.3.6",
                    "versionType": "semver"
                  },
                  {
                    "lessThanOrEqual": "*",
                    "status": "unaffected",
                    "version": "7.4-rc1",
                    "versionType": "original_commit_for_fix"
                  }
                ]
              }
            ],
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nrnbd-srv: publish the sess_dev at the end of OPEN\n\nrnbd_sess_dev_alloc() stores the empty sess_dev in the XArray as its\nfirst step. An IO message with the new ID from another connection can\nfind it before bdev_file is set, or hold a reference while a failing\nOPEN frees it after a mere RCU grace period. Both are reachable from any\nhost that can open a device.\n\nReserve the ID with a NULL entry and store the sess_dev once nothing can\nfail anymore. The error path still erases the ID, and no longer needs\nsynchronize_rcu()."
          }
        ],
        "id": "CVE-2026-139112",
        "lastModified": "2026-12-01T06:17:35.143",
        "metrics": {
          "cvssMetricV31": [
            {
              "cvssData": {
                "attackComplexity": "LOW",
                "attackVector": "NETWORK",
                "availabilityImpact": "HIGH",
                "baseScore": 9.8,
                "baseSeverity": "CRITICAL",
                "confidentialityImpact": "HIGH",
                "integrityImpact": "HIGH",
                "privilegesRequired": "NONE",
                "scope": "UNCHANGED",
                "userInteraction": "NONE",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "exploitabilityScore": 3.9,
              "impactScore": 5.9,
              "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-30T14:18:20.033",
        "references": [
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/08ebf69c78a02afb39b7728f3358c09bc4cf067d"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/09a61095f582500ccface75a664bae226522ad74"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/0fcec36fc1a28ebb29a524088e472605ca224840"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/273408c3a7a5c16442b0fe902a8e88044a112553"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/310b79760a901d6aff2f968b8de41de29e75d58c"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/53651d26368168f2b9971cf7136510c9af803777"
          },
          {
            "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
            "url": "https://git.kernel.org/stable/c/ffddd6e86a926a201af6ae903af6847cbe1e8ebd"
          }
        ],
        "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "vulnStatus": "Received"
      }
    },
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2026-12-01T07:09:52+00:00",
      "cve": "CVE-2026-139112",
      "id": "CVE-2026-139112",
      "initial_release_date": "2026-11-30T13:31:41.589000+00:00",
      "product_status:known_not_affected": "280",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: kernel: Denial of Service via race condition in rnbd-srv",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-139112.json",
      "version": "3"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.