{"api_version":"1","generated_at":"2026-11-30T17:17:47+00:00","cve":"CVE-2026-139157","urls":{"html":"https://cve.report/CVE-2026-139157","api":"https://cve.report/api/cve/CVE-2026-139157.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139157","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139157"},"summary":{"title":"nvmet: use the enabled transport when disabling a port","description":"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:34","updated_at":"2026-11-30 14:18:34"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/0becb7856d419c9fafcae3ad0182b2398f924f29","name":"https://git.kernel.org/stable/c/0becb7856d419c9fafcae3ad0182b2398f924f29","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7ed6f416744f98e25c43c5a81daa5581637001b7","name":"https://git.kernel.org/stable/c/7ed6f416744f98e25c43c5a81daa5581637001b7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/60385038754ed9fb05dab127b35f88c702252505","name":"https://git.kernel.org/stable/c/60385038754ed9fb05dab127b35f88c702252505","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/929e8db88a87e4cd119809acee455816605e3e3e","name":"https://git.kernel.org/stable/c/929e8db88a87e4cd119809acee455816605e3e3e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ce42d3a48d5c280449476ea005e04854af3fa718","name":"https://git.kernel.org/stable/c/ce42d3a48d5c280449476ea005e04854af3fa718","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/8c17a634a1485d2450cb998d18d9a54bf1021565","name":"https://git.kernel.org/stable/c/8c17a634a1485d2450cb998d18d9a54bf1021565","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7d1118f62d0c7bfb46300257a2fae9a61a8e090c","name":"https://git.kernel.org/stable/c/7d1118f62d0c7bfb46300257a2fae9a61a8e090c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/0c9d85e54196fd69810017a2624614fb6619cb8d","name":"https://git.kernel.org/stable/c/0c9d85e54196fd69810017a2624614fb6619cb8d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139157","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139157","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 7ed6f416744f98e25c43c5a81daa5581637001b7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 7d1118f62d0c7bfb46300257a2fae9a61a8e090c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b ce42d3a48d5c280449476ea005e04854af3fa718 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 929e8db88a87e4cd119809acee455816605e3e3e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 0becb7856d419c9fafcae3ad0182b2398f924f29 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 8c17a634a1485d2450cb998d18d9a54bf1021565 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 0c9d85e54196fd69810017a2624614fb6619cb8d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 60385038754ed9fb05dab127b35f88c702252505 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/nvme/target/configfs.c","drivers/nvme/target/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"7ed6f416744f98e25c43c5a81daa5581637001b7","status":"affected","version":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","versionType":"git"},{"lessThan":"7d1118f62d0c7bfb46300257a2fae9a61a8e090c","status":"affected","version":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","versionType":"git"},{"lessThan":"ce42d3a48d5c280449476ea005e04854af3fa718","status":"affected","version":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","versionType":"git"},{"lessThan":"929e8db88a87e4cd119809acee455816605e3e3e","status":"affected","version":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","versionType":"git"},{"lessThan":"0becb7856d419c9fafcae3ad0182b2398f924f29","status":"affected","version":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","versionType":"git"},{"lessThan":"8c17a634a1485d2450cb998d18d9a54bf1021565","status":"affected","version":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","versionType":"git"},{"lessThan":"0c9d85e54196fd69810017a2624614fb6619cb8d","status":"affected","version":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","versionType":"git"},{"lessThan":"60385038754ed9fb05dab127b35f88c702252505","status":"affected","version":"8f000cac6e7a6edca7ab93bafc7ed28b27c1545b","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/nvme/target/configfs.c","drivers/nvme/target/core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.8"},{"lessThan":"4.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","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.10.275","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.8","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:06.626Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/7ed6f416744f98e25c43c5a81daa5581637001b7"},{"url":"https://git.kernel.org/stable/c/7d1118f62d0c7bfb46300257a2fae9a61a8e090c"},{"url":"https://git.kernel.org/stable/c/ce42d3a48d5c280449476ea005e04854af3fa718"},{"url":"https://git.kernel.org/stable/c/929e8db88a87e4cd119809acee455816605e3e3e"},{"url":"https://git.kernel.org/stable/c/0becb7856d419c9fafcae3ad0182b2398f924f29"},{"url":"https://git.kernel.org/stable/c/8c17a634a1485d2450cb998d18d9a54bf1021565"},{"url":"https://git.kernel.org/stable/c/0c9d85e54196fd69810017a2624614fb6619cb8d"},{"url":"https://git.kernel.org/stable/c/60385038754ed9fb05dab127b35f88c702252505"}],"title":"nvmet: use the enabled transport when disabling a port","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139157","datePublished":"2026-11-30T13:32:06.626Z","dateReserved":"2026-11-30T13:22:15.917Z","dateUpdated":"2026-11-30T13:32:06.626Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:34","lastModifiedDate":"2026-11-30 14:18:34","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139157","Ordinal":"1","Title":"nvmet: use the enabled transport when disabling a port","CVE":"CVE-2026-139157","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139157","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"nvmet: use the enabled transport when disabling a port"}]}}}