{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "2de6c8de192b9341ffa5e84afe1ce6196d4eef41"
            },
            {
              "fixed": "c47d198faf301278927ae62802626d19c32332d5"
            },
            {
              "fixed": "d8cb9e9ba95dce0c4731f3c6cf50632fd8540cad"
            },
            {
              "fixed": "0368a1ebc080e42f5c1c2708c621deae05fdb629"
            },
            {
              "fixed": "c366173339de0cfcc3cbcaccfbe726459f9f96d4"
            },
            {
              "fixed": "ccae722c4bc716df8a4cdde462071d034f92f32d"
            },
            {
              "fixed": "4912dab88baa5f7034dc9e38807804d470ae5438"
            }
          ],
          "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": "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-139113.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nrnbd-srv: fix use-after-free on two CLOSE messages\n\nprocess_msg_close() looks the sess_dev up with a kref, drops it right\naway, and only then takes the session mutex for the teardown. A session\nhas several connections handled by different workers, so two CLOSE\nmessages for the same ID both finish the lookup before either one tears\nthe sess_dev down, and the second one works on freed memory. Any host\nthat can open a device on the server can do that.\n\nTake the mutex first and look the ID up with xa_load() under it. The\nsecond CLOSE then finds nothing.",
  "id": "CVE-2026-139113",
  "modified": "2026-12-01T06:46:04.839540264Z",
  "published": "2026-11-30T13:31:42.154Z",
  "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/0368a1ebc080e42f5c1c2708c621deae05fdb629"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4912dab88baa5f7034dc9e38807804d470ae5438"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c366173339de0cfcc3cbcaccfbe726459f9f96d4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c47d198faf301278927ae62802626d19c32332d5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ccae722c4bc716df8a4cdde462071d034f92f32d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d8cb9e9ba95dce0c4731f3c6cf50632fd8540cad"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139113.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139113"
    }
  ],
  "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: fix use-after-free on two CLOSE messages"
}