nvmet-tcp: don't read a removed port at Connect time

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

nvmet-tcp: don't read a removed port at Connect time

nvmet_tcp_alloc_cmd() takes the nvmet port of a command from queue->port, and the commands of a queue are allocated from the io work when the Connect arrives. nvmet_tcp_remove_port() shuts down the queues that have no controller yet and frees the port without waiting for them, they're released later from a work. An io work handling a Connect at that moment reads the freed port for every command of the queue and hands the result to the core.

Note the nvmet port in the queue at allocation. It outlives the transport port.

ProductVersions
Linux Linux872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 2fdee6626c636690c9803cd44f94daa7546f3a2d Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before c00bba2bc0c7c9a182ab18541afab0bc7e83c191 Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 2e944e2bedf124b13d3eca1daf56491d8c1ffc28 Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 9a7ad8e2d260ddaa16d06bc7131e56b202b15809 Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before e4374587278f09fb3fdfc0137911ab36a08df3bd Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 1f32cb887fa06de515ca7844195ccde137f1bc9a Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 23e3b95e11332ae0a0f16c38be566d0f1300ad05 Affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to before 3f98ce65a87979e881343dcf082c9595ec90ddc7 Affected
Linux Linux5.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

Weaknesses

The record names no weakness.

References

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.