{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "8f000cac6e7a6edca7ab93bafc7ed28b27c1545b"
            },
            {
              "fixed": "7ed6f416744f98e25c43c5a81daa5581637001b7"
            },
            {
              "fixed": "7d1118f62d0c7bfb46300257a2fae9a61a8e090c"
            },
            {
              "fixed": "ce42d3a48d5c280449476ea005e04854af3fa718"
            },
            {
              "fixed": "929e8db88a87e4cd119809acee455816605e3e3e"
            },
            {
              "fixed": "0becb7856d419c9fafcae3ad0182b2398f924f29"
            },
            {
              "fixed": "8c17a634a1485d2450cb998d18d9a54bf1021565"
            },
            {
              "fixed": "0c9d85e54196fd69810017a2624614fb6619cb8d"
            },
            {
              "fixed": "60385038754ed9fb05dab127b35f88c702252505"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.8.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.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-139157.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnvmet: use the enabled transport when disabling a port\n\nnvmet_disable_port() looks up the transport from the current\ndisc_addr.trtype, while nvmet_enable_port() records the transport in\nport-\u003etr_ops.  If trtype is changed while a port is being enabled, the\nport can be removed through a different transport, passing the private\ndata of the original transport to the wrong -\u003eremove_port().\n\nThe same mismatch is reachable with loop and RDMA: loop add_port()\nleaves port-\u003epriv NULL, and RDMA remove_port() dereferences it.\n\nUse port-\u003etr_ops for removal and serialize trtype changes with\nnvmet_config_sem in nvmet_addr_trtype_store(), so the transport that\nadded the port is also the one that removes it.",
  "id": "CVE-2026-139157",
  "modified": "2026-11-30T14:45:44.607903111Z",
  "published": "2026-11-30T13:32:06.626Z",
  "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/0becb7856d419c9fafcae3ad0182b2398f924f29"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/0c9d85e54196fd69810017a2624614fb6619cb8d"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/60385038754ed9fb05dab127b35f88c702252505"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7d1118f62d0c7bfb46300257a2fae9a61a8e090c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7ed6f416744f98e25c43c5a81daa5581637001b7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8c17a634a1485d2450cb998d18d9a54bf1021565"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/929e8db88a87e4cd119809acee455816605e3e3e"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/ce42d3a48d5c280449476ea005e04854af3fa718"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139157.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139157"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "nvmet: use the enabled transport when disabling a port"
}