# CVE-2024-45013: nvme: move stopping keep-alive into nvme_uninit_ctrl()

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.38%, higher than 33% of CVEs (2026-12-01)
- Published: 2024-09-11T15:13:50.210Z
- Modified: 2026-08-05T11:37:40.579Z
- Weaknesses: CWE-416
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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().

(As written by CVE List.)

## Affected

- Linux Linux: from 3af755a46881c32fecaecfdeaf3a8f0a869deca5 before 4101af98ab573554c4225e328d506fec2a74bc54; from 3af755a46881c32fecaecfdeaf3a8f0a869deca5 before a54a93d0e3599b05856971734e15418ac551a14c; 6.7 (not affected: before 6.7; from 6.10.7 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.7 before 6.10.7; 6.11

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4101af98ab573554c4225e328d506fec2a74bc54> (patch)
- <https://git.kernel.org/stable/c/a54a93d0e3599b05856971734e15418ac551a14c> (patch)

## Sources

- CVE List: [CVE-2024-45013](https://www.cve.org/CVERecord?id=CVE-2024-45013), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-45013](https://nvd.nist.gov/vuln/detail/CVE-2024-45013), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-45013 · Whole record: https://cve.day/CVE-2024-45013.json · Rebuilt by cve.day 2026-11-25T22:58:45.307Z
