nvme: move stopping keep-alive into nvme_uninit_ctrl()
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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.10.7
- CVEs
- CVE-2024-45013
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 13:29 UTC · Revision 1
Source evidence
nvme: move stopping keep-alive into nvme_uninit_ctrl()
core-osv · Original sourcePublished 11 Sept 2024, 15:13 UTC
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().
osv:CVE-2024-45013
Kernel
Fixed versions: 6.10.7
Complete source record
{
"id": "3fd46d264d0fcb284515d2b69230b2497b75efb9a3e9c197f49655509db9c5a1",
"url": "https://osv.dev/vulnerability/CVE-2024-45013",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "nvme: move stopping keep-alive into nvme_uninit_ctrl()",
"summary": "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().",
"evidence": "osv:CVE-2024-45013",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.10.7",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "critical",
"structured": {
"id": "CVE-2024-45013",
"aliases": [
"CVE-2024-45013"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "3af755a46881c32fecaecfdeaf3a8f0a869deca5"
},
{
"fixed": "4101af98ab573554c4225e328d506fec2a74bc54"
},
{
"fixed": "a54a93d0e3599b05856971734e15418ac551a14c"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-45013.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.10.7"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-45013.json"
}
}
],
"modified": "2026-10-28T02:30:36.049453420Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/4101af98ab573554c4225e328d506fec2a74bc54",
"https://git.kernel.org/stable/c/a54a93d0e3599b05856971734e15418ac551a14c",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45013.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-45013",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45013.json"
}
},
"related_cves": [
{
"value": "CVE-2024-45013",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 503140,
"published_at": "2024-09-11T15:13:50.21+00:00"
}