CVE-2024-45013

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-45013
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-45013.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-45013
Downstream
Related
Published
2024-09-11T15:13:50Z
Modified
2025-10-22T01:56:34.994292Z
Summary
nvme: move stopping keep-alive into nvme_uninit_ctrl()
Details

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

nvme: move stopping keep-alive into nvmeuninitctrl()

Commit 4733b65d82bd ("nvme: start keep-alive after admin queue setup") moves starting keep-alive from nvmestartctrl() into nvmeinitctrlfinish(), but don't move stopping keep-alive into nvmeuninit_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 nvmeuninitctrl().

This way is reasonable because keep-alive is now started in nvmeinitctrl_finish().

References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3af755a46881c32fecaecfdeaf3a8f0a869deca5
Fixed
4101af98ab573554c4225e328d506fec2a74bc54
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
3af755a46881c32fecaecfdeaf3a8f0a869deca5
Fixed
a54a93d0e3599b05856971734e15418ac551a14c

Affected versions

v6.*

v6.10
v6.10-rc1
v6.10-rc2
v6.10-rc3
v6.10-rc4
v6.10-rc5
v6.10-rc6
v6.10-rc7
v6.10.1
v6.10.2
v6.10.3
v6.10.4
v6.10.5
v6.10.6
v6.7
v6.7-rc1
v6.7-rc2
v6.7-rc3
v6.7-rc4
v6.7-rc5
v6.7-rc6
v6.7-rc7
v6.7-rc8
v6.8
v6.8-rc1
v6.8-rc2
v6.8-rc3
v6.8-rc4
v6.8-rc5
v6.8-rc6
v6.8-rc7
v6.9
v6.9-rc1
v6.9-rc2
v6.9-rc3
v6.9-rc4
v6.9-rc5
v6.9-rc6
v6.9-rc7

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.10.7