nvmet-tcp: stop listening when a port is removed

Summary

CVECVE-2026-139153
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:18:33 UTC
Updated2026-11-30 14:18:33 UTC
DescriptionIn the Linux kernel, the following vulnerability has been resolved: nvmet-tcp: stop listening when a port is removed nvmet_tcp_accept_work() accepts until there's nothing left. A connection that is already dead when accepted is torn down right there, which takes a few ms, and more can arrive meanwhile. nvmet_tcp_remove_port() waits for the work with cancel_work_sync(), so someone opening and closing connections in a loop keeps the removal from finishing. It holds nvmet_config_sem for writing, so nothing can be configured and no port answers a Connect until the flood stops. No secret needed, just an admin removing the port at the wrong time. Shut the listening socket down first. Pending connections are dropped, as they were on release, and the next kernel_accept() fails and ends the work.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 c9d4fb77cf994e416670789ba3776ff00ef8b8ad git Not specified
CNA Linux Linux affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 f1fc1b2f8aaf6cd0df892eaf6c24ac70ad247e3e git Not specified
CNA Linux Linux affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 077878974f50037f3ed77dc08a5bd1f4eb109e67 git Not specified
CNA Linux Linux affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 3898c1e40a37d564ef2bdf0cb400bab6174e5666 git Not specified
CNA Linux Linux affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 8f808bfb097c718e274b8940ba1bd7c87f0797e2 git Not specified
CNA Linux Linux affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 556dc6a588baf718b68f3693c1c80612b2cb2590 git Not specified
CNA Linux Linux affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 ef3dc45850555cf0b00e019372d0ceab29c9ed5d git Not specified
CNA Linux Linux affected 872d26a391da92ed8f0c0f5cb5fef428067b7f30 ece0f4e67f08792c8572080fb0fcc231554f08ca git Not specified
CNA Linux Linux affected 5.0 Not specified
CNA Linux Linux unaffected 5.0 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/8f808bfb097c718e274b8940ba1bd7c87f0797e2 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/077878974f50037f3ed77dc08a5bd1f4eb109e67 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ef3dc45850555cf0b00e019372d0ceab29c9ed5d 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/556dc6a588baf718b68f3693c1c80612b2cb2590 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/3898c1e40a37d564ef2bdf0cb400bab6174e5666 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f1fc1b2f8aaf6cd0df892eaf6c24ac70ad247e3e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ece0f4e67f08792c8572080fb0fcc231554f08ca 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c9d4fb77cf994e416670789ba3776ff00ef8b8ad 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