{"id":"CVE-2026-139157","aliases":["CVE-2026-139157"],"related":[],"kind":"vulnerability","state":"published","title":"nvmet: use the enabled transport when disabling a port","summary":"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->tr_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 ->remove_port().\n\nThe same mismatch is reachable with loop and RDMA: loop add_port()\nleaves port->priv NULL, and RDMA remove_port() dereferences it.\n\nUse port->tr_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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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->tr_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 ->remove_port().\n\nThe same mismatch is reachable with loop and RDMA: loop add_port()\nleaves port->priv NULL, and RDMA remove_port() dereferences it.\n\nUse port->tr_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.","source":"cvelist"}],"published":"2026-11-30T13:32:06.626Z","modified":"2026-11-30T14:18:34.437Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","fixed":"7ed6f416744f98e25c43c5a81daa5581637001b7","status":"affected"},{"type":"git","introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","fixed":"7d1118f62d0c7bfb46300257a2fae9a61a8e090c","status":"affected"},{"type":"git","introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","fixed":"ce42d3a48d5c280449476ea005e04854af3fa718","status":"affected"},{"type":"git","introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","fixed":"929e8db88a87e4cd119809acee455816605e3e3e","status":"affected"},{"type":"git","introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","fixed":"0becb7856d419c9fafcae3ad0182b2398f924f29","status":"affected"},{"type":"git","introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","fixed":"8c17a634a1485d2450cb998d18d9a54bf1021565","status":"affected"},{"type":"git","introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","fixed":"0c9d85e54196fd69810017a2624614fb6619cb8d","status":"affected"},{"type":"git","introduced":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","fixed":"60385038754ed9fb05dab127b35f88c702252505","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.8","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.8","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7ed6f416744f98e25c43c5a81daa5581637001b7","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d1118f62d0c7bfb46300257a2fae9a61a8e090c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ce42d3a48d5c280449476ea005e04854af3fa718","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/929e8db88a87e4cd119809acee455816605e3e3e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0becb7856d419c9fafcae3ad0182b2398f924f29","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8c17a634a1485d2450cb998d18d9a54bf1021565","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0c9d85e54196fd69810017a2624614fb6619cb8d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60385038754ed9fb05dab127b35f88c702252505","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139157","url":"https://www.cve.org/CVERecord?id=CVE-2026-139157","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:06.626Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139157","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139157","licence":"Public domain","modified":"2026-11-30T14:18:34.437Z"}],"updatedAt":"2026-11-30T14:32:48.595Z","epss":{"score":0.00211,"percentile":0.12003,"date":"2026-12-01T12:00:22.000Z"}}