nvmet-tcp: stop listening when a port is removed
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In 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.
| Product | Versions |
|---|---|
| Linux Linux | 872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before c9d4fb77cf994e416670789ba3776ff00ef8b8ad Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before f1fc1b2f8aaf6cd0df892eaf6c24ac70ad247e3e Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 077878974f50037f3ed77dc08a5bd1f4eb109e67 Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 3898c1e40a37d564ef2bdf0cb400bab6174e5666 Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 8f808bfb097c718e274b8940ba1bd7c87f0797e2 Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 556dc6a588baf718b68f3693c1c80612b2cb2590 Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before ef3dc45850555cf0b00e019372d0ceab29c9ed5d Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before ece0f4e67f08792c8572080fb0fcc231554f08ca Affected |
| Linux Linux | 5.0 Affectedbefore 5.0 Not Affected5.10.275 through 5.10.* Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
- https://git.kernel.org/stable/c/c9d4fb77cf994e416670789ba3776ff00ef8b8ad
- https://git.kernel.org/stable/c/f1fc1b2f8aaf6cd0df892eaf6c24ac70ad247e3e
- https://git.kernel.org/stable/c/077878974f50037f3ed77dc08a5bd1f4eb109e67
- https://git.kernel.org/stable/c/3898c1e40a37d564ef2bdf0cb400bab6174e5666
- https://git.kernel.org/stable/c/8f808bfb097c718e274b8940ba1bd7c87f0797e2
- https://git.kernel.org/stable/c/556dc6a588baf718b68f3693c1c80612b2cb2590
- https://git.kernel.org/stable/c/ef3dc45850555cf0b00e019372d0ceab29c9ed5d
- https://git.kernel.org/stable/c/ece0f4e67f08792c8572080fb0fcc231554f08ca
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.