{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41"
            },
            {
              "fixed": "09a61095f582500ccface75a664bae226522ad74"
            },
            {
              "fixed": "273408c3a7a5c16442b0fe902a8e88044a112553"
            },
            {
              "fixed": "310b79760a901d6aff2f968b8de41de29e75d58c"
            },
            {
              "fixed": "ffddd6e86a926a201af6ae903af6847cbe1e8ebd"
            },
            {
              "fixed": "53651d26368168f2b9971cf7136510c9af803777"
            },
            {
              "fixed": "0fcec36fc1a28ebb29a524088e472605ca224840"
            },
            {
              "fixed": "08ebf69c78a02afb39b7728f3358c09bc4cf067d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.8.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139112.json"
  },
  "details": "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",
  "modified": "2026-12-01T06:46:12.794182227Z",
  "published": "2026-11-30T13:31:41.589Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/08ebf69c78a02afb39b7728f3358c09bc4cf067d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/09a61095f582500ccface75a664bae226522ad74"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0fcec36fc1a28ebb29a524088e472605ca224840"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/273408c3a7a5c16442b0fe902a8e88044a112553"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/310b79760a901d6aff2f968b8de41de29e75d58c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/53651d26368168f2b9971cf7136510c9af803777"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ffddd6e86a926a201af6ae903af6847cbe1e8ebd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139112.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139112"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "rnbd-srv: publish the sess_dev at the end of OPEN"
}