nvmet: use the enabled transport when disabling a port

Summary

CVECVE-2026-139157
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:34 UTC
Updated2026-11-30 14:18:34 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: nvmet: use the enabled transport when disabling a port nvmet_disable_port() looks up the transport from the current disc_addr.trtype, while nvmet_enable_port() records the transport in port->tr_ops. If trtype is changed while a port is being enabled, the port can be removed through a different transport, passing the private data of the original transport to the wrong ->remove_port(). The same mismatch is reachable with loop and RDMA: loop add_port() leaves port->priv NULL, and RDMA remove_port() dereferences it. Use port->tr_ops for removal and serialize trtype changes with nvmet_config_sem in nvmet_addr_trtype_store(), so the transport that added the port is also the one that removes it.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 7ed6f416744f98e25c43c5a81daa5581637001b7 git Not specified
CNA Linux Linux affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 7d1118f62d0c7bfb46300257a2fae9a61a8e090c git Not specified
CNA Linux Linux affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b ce42d3a48d5c280449476ea005e04854af3fa718 git Not specified
CNA Linux Linux affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 929e8db88a87e4cd119809acee455816605e3e3e git Not specified
CNA Linux Linux affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 0becb7856d419c9fafcae3ad0182b2398f924f29 git Not specified
CNA Linux Linux affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 8c17a634a1485d2450cb998d18d9a54bf1021565 git Not specified
CNA Linux Linux affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 0c9d85e54196fd69810017a2624614fb6619cb8d git Not specified
CNA Linux Linux affected 8f000cac6e7a6edca7ab93bafc7ed28b27c1545b 60385038754ed9fb05dab127b35f88c702252505 git Not specified
CNA Linux Linux affected 4.8 Not specified
CNA Linux Linux unaffected 4.8 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/0becb7856d419c9fafcae3ad0182b2398f924f29 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7ed6f416744f98e25c43c5a81daa5581637001b7 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/60385038754ed9fb05dab127b35f88c702252505 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/929e8db88a87e4cd119809acee455816605e3e3e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ce42d3a48d5c280449476ea005e04854af3fa718 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/8c17a634a1485d2450cb998d18d9a54bf1021565 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7d1118f62d0c7bfb46300257a2fae9a61a8e090c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0c9d85e54196fd69810017a2624614fb6619cb8d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report