Description (CNA)
In the Linux kernel, the following vulnerability has been resolved: nvmet-auth: Synchronize timeout work during SQ teardown nvmet_auth_sq_free() cancels auth_expired_work with cancel_delayed_work(). If the work has already started, cancellation does not wait for the callback. Transport teardown can consequently free or reuse the queue containing struct nvmet_sq while nvmet_auth_expired_work() still accesses that SQ. Add a teardown-specific helper that synchronously drains the delayed work before freeing authentication state, and use it from nvmet_sq_destroy(). Keep the non-synchronous helper for in-band authentication state cleanup, where the SQ owner remains alive.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 1a70200f404ae210b4f0334e3936e84f8edb6bc8 before 664022fa1c93f4eba09ef5ee02411b9709dd7a93; affected 1a70200f404ae210b4f0334e3936e84f8edb6bc8 before c3c126a6142a1335bc8c34a5607c39cf01daf295; affected 1a70200f404ae210b4f0334e3936e84f8edb6bc8 before c17c87bde6d6f5252a6a6f0a94b2430164aa28d5; affected 1a70200f404ae210b4f0334e3936e84f8edb6bc8 before 7555ddd60af72df2862dd8f9b730a9848577edda; affected 1a70200f404ae210b4f0334e3936e84f8edb6bc8 before eb4f9127a2b8a152743f1ee597627e2f69cb54fe; affected 1a70200f404ae210b4f0334e3936e84f8edb6bc8 before eaa948c0e19b1bb2d93262207bca0c3d19cc3406 |
| Linux / Linux | affected 6.0; unaffected 0 before 6.0; unaffected 6.1.188 through 6.1.*; unaffected 6.6.157 through 6.6.*; unaffected 6.12.110 through 6.12.*; unaffected 6.18.51 through 6.18.*; unaffected 7.2.5 through 7.2.*; unaffected 7.3 through * |
CWE
No CWE identifiers supplied.
References
- https://git.kernel.org/stable/c/664022fa1c93f4eba09ef5ee02411b9709dd7a93
- https://git.kernel.org/stable/c/c3c126a6142a1335bc8c34a5607c39cf01daf295
- https://git.kernel.org/stable/c/c17c87bde6d6f5252a6a6f0a94b2430164aa28d5
- https://git.kernel.org/stable/c/7555ddd60af72df2862dd8f9b730a9848577edda
- https://git.kernel.org/stable/c/eb4f9127a2b8a152743f1ee597627e2f69cb54fe
- https://git.kernel.org/stable/c/eaa948c0e19b1bb2d93262207bca0c3d19cc3406