CVE-2024-45013

published 11 Sep 2024 · updated 5 Aug 2026

nvme: move stopping keep-alive into nvme_uninit_ctrl()

9.8CriticalCVSS 9.8EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 4101af98ab573554c4225e328d506fec2a74bc54 and Kernel a54a93d0e3599b05856971734e15418ac551a14c.

In the Linux kernel, the following vulnerability has been resolved: nvme: move stopping keep-alive into nvme_uninit_ctrl() Commit 4733b65d82bd ("nvme: start keep-alive after admin queue setup") moves starting keep-alive from nvme_start_ctrl() into nvme_init_ctrl_finish(), but don't move stopping keep-alive into nvme_uninit_ctrl(), so keep-alive work can be started and keep pending after failing to start controller, finally use-after-free is triggered if nvme host driver is unloaded. This patch fixes kernel panic when running nvme/004 in case that connection failure is triggered, by moving stopping keep-alive into nvme_uninit_ctrl(). This way is reasonable because keep-alive is now started in nvme_init_ctrl_finish().

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel=6.7, >=3af755a46881c32fecaecfdeaf3a8f0a869deca5 <4101af98ab573554c4225e328d506fec2a74bc54, >=3af755a46881c32fecaecfdeaf3a8f0a869deca5 <a54a93d0e3599b05856971734e15418ac551a14c4101af98ab573554c4225e328d506fec2a74bc54, a54a93d0e3599b05856971734e15418ac551a14c

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-45013 severity on Zeptric[![CVE-2024-45013](https://zeptric.io/badge/cve/CVE-2024-45013.svg)](https://zeptric.io/cve/CVE-2024-45013)