CVE-2026-139153: nvmet-tcp: stop listening when a port is removed
In the Linux kernel, the following vulnerability has been resolved:
nvmet-tcp: stop listening when a port is removed
nvmettcpacceptwork() 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. nvmettcpremoveport() waits for the work with cancelworksync(), so someone opening and closing connections in a loop keeps the removal from finishing. It holds nvmetconfigsem 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 kernelaccept() fails and ends the work.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Compensating control
When removing an nvmet-tcp port, shut down the listening socket first so no new connections arrive while accept work is being stopped.
Event History
Frequently Asked Questions
Who can trigger the denial of service?
An attacker only needs network access to repeatedly open and close connections to an NVMET TCP listening port while an administrator removes that port. No secret is required.
What is the operational impact during exploitation?
Port removal can remain blocked while the connection flood continues. Because removal holds nvmet_config_sem for writing, configuration changes are blocked and no port responds to Connect requests until the flood stops.
When is a system exposed?
The issue requires an NVMET TCP port to be listening and an administrator to remove that port while connections are being rapidly opened and closed. The provided information does not identify affected kernel versions or configurations beyond this condition.
What does the fix change?
The fix shuts down the listening socket before waiting for the accept work to finish. This drops pending connections and causes the next kernel_accept() call to fail, allowing port removal to complete.