md/raid1: fix memory leak in raid1_run()
In the Linux kernel, the following vulnerability has been resolved: md/raid1: fix memory leak in raid1_run() raid1_run() calls setup_conf() which registers a thread via md_register_thread(). If raid1_set_limits() fails, the previously registered thread is not unregistered, resulting in a memory leak of the md_thread structure and the thread resource itself. Add md_unregister_thread() to the error path to properly cleanup the thread, which aligns with the error handling logic of other paths in this function. Compile tested only. Issue found using a prototype static analysis tool and code review.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.12.75, 6.18.14, 6.19.4
- CVEs
- CVE-2026-45888
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 16:36 UTC · Revision 1
Source evidence
In the Linux kernel, the following vulnerability has been resolved: md/raid1: fix memory leak in raid1_run() raid1_run() calls setup_conf() which registers a thread via md_register_thread(). If raid1_set_limits() fails, the previously registered thread is not unregistered, resulting in a memory leak of the md_thread structure and the thread resource itself. Add md_unregister_thread() to the error path to properly cleanup the thread, which aligns with the error handling logic of other paths in this function. Compile tested only. Issue found using a prototype static analysis tool and code review.
osv:CVE-2026-45888
Kernel
Fixed versions: 6.12.75, 6.18.14, 6.19.4
Complete source record
{
"id": "dc2d62d7f6771ae9b1bbc4d9b8c526567390077579e0cf2fce05a45cdceb0f83",
"url": "https://osv.dev/vulnerability/CVE-2026-45888",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "md/raid1: fix memory leak in raid1_run()",
"summary": "In the Linux kernel, the following vulnerability has been resolved: md/raid1: fix memory leak in raid1_run() raid1_run() calls setup_conf() which registers a thread via md_register_thread(). If raid1_set_limits() fails, the previously registered thread is not unregistered, resulting in a memory leak of the md_thread structure and the thread resource itself. Add md_unregister_thread() to the error path to properly cleanup the thread, which aligns with the error handling logic of other paths in this function. Compile tested only. Issue found using a prototype static analysis tool and code review.",
"evidence": "osv:CVE-2026-45888",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.12.75",
"evidence": "/affected/1/ranges"
},
{
"value": "6.18.14",
"evidence": "/affected/1/ranges"
},
{
"value": "6.19.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2026-45888",
"aliases": [
"CVE-2026-45888"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "97894f7d3c2966164516a8a5109674763d3a55e1"
},
{
"fixed": "c94fd6e8a71efd047ff36930e840f3c25679e136"
},
{
"fixed": "ec10e3dc93994b87adf7c759a4639fe34013989a"
},
{
"fixed": "b37588b0282a2b3cdda9db1d53712745ce66dea0"
},
{
"fixed": "6abc7d5dcf0ee0f85e16e41c87fbd06231f28753"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45888.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.9.0"
},
{
"fixed": "6.12.75"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.18.14"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.19.0"
},
{
"fixed": "6.19.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-45888.json"
}
}
],
"modified": "2026-10-28T02:30:30.532692046Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/6abc7d5dcf0ee0f85e16e41c87fbd06231f28753",
"https://git.kernel.org/stable/c/b37588b0282a2b3cdda9db1d53712745ce66dea0",
"https://git.kernel.org/stable/c/c94fd6e8a71efd047ff36930e840f3c25679e136",
"https://git.kernel.org/stable/c/ec10e3dc93994b87adf7c759a4639fe34013989a",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45888.json",
"https://nvd.nist.gov/vuln/detail/CVE-2026-45888",
"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/2026/45xxx/CVE-2026-45888.json"
}
},
"related_cves": [
{
"value": "CVE-2026-45888",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 497427,
"published_at": "2026-05-27T12:16:59.751+00:00"
}