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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 2fdee6626c636690c9803cd44f94daa7546f3a2daffected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < c00bba2bc0c7c9a182ab18541afab0bc7e83c191affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 2e944e2bedf124b13d3eca1daf56491d8c1ffc28affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 9a7ad8e2d260ddaa16d06bc7131e56b202b15809affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < e4374587278f09fb3fdfc0137911ab36a08df3bdaffected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 1f32cb887fa06de515ca7844195ccde137f1bc9aaffected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 23e3b95e11332ae0a0f16c38be566d0f1300ad05affected872d26a391da92ed8f0c0f5cb5fef428067b7f30 to < 3f98ce65a87979e881343dcf082c9595ec90ddc7affected
Linux Linux
Default version status: affected
5.0affected0 to < 5.0unaffected5.10.275 to ≤ 5.10.*unaffected5.15.226 to ≤ 5.15.*unaffected6.1.193 to ≤ 6.1.*unaffected6.6.163 to ≤ 6.6.*unaffected6.12.119 to ≤ 6.12.*unaffected6.18.65 to ≤ 6.18.*unaffected7.3.6 to ≤ 7.3.*unaffected7.4-rc1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/2fdee6626c636690c9803cd44f94daa7546f3a2d ↗
- https://git.kernel.org/stable/c/c00bba2bc0c7c9a182ab18541afab0bc7e83c191 ↗
- https://git.kernel.org/stable/c/2e944e2bedf124b13d3eca1daf56491d8c1ffc28 ↗
- https://git.kernel.org/stable/c/9a7ad8e2d260ddaa16d06bc7131e56b202b15809 ↗
- https://git.kernel.org/stable/c/e4374587278f09fb3fdfc0137911ab36a08df3bd ↗
- https://git.kernel.org/stable/c/1f32cb887fa06de515ca7844195ccde137f1bc9a ↗
- https://git.kernel.org/stable/c/23e3b95e11332ae0a0f16c38be566d0f1300ad05 ↗
- https://git.kernel.org/stable/c/3f98ce65a87979e881343dcf082c9595ec90ddc7 ↗