Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0FAE83ED13E for ; Wed, 27 May 2026 12:23:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884618; cv=none; b=WNzZvxf4Hf8c1kdSrtERZKuN8qZ8kG1jW0pXqKFn+9JL4U0i9Xxhdrr4bP5TnoRK//ymlPTNtAsnp9JuJMC8F3sB96HM2YrXUYn+0K8Kg9jJCOBzg7ndxUp6QOsOMZ0y/3HR6deCJ4PmiDFeksiaWbAUVFWvcoJS4s2mLnQZqkE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779884618; c=relaxed/simple; bh=BBi170Jmg/39KaxEuQh+/6dxvV6bmwhfqjL4brQBN7E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rWeuwYO9ZPYQGA+RgPGtvR9ldT+jea6BnXdlxaLlmS/Yk/bnLFbdHikM/afLfg1fGJJRu45rDjLcBl/DJkQKdpKoTl9edmo7T7pPbCLCIf4yLFcHVlbZW9q9CF576rUydxs7qqb3Nzy2ZkIiRUW/jwPWaHGAH3zUBhEih68BSPo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=QL4e3OKp; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="QL4e3OKp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6CA531F000E9; Wed, 27 May 2026 12:23:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779884617; bh=d5NEGNkcw/c0kG5FVVwZgOV7gH7mMLI78m5qYHQ6slk=; h=From:To:Cc:Subject:Date:Reply-To; b=QL4e3OKpcNFgwRs9u25hPT5MklCy/HbqlweEhYwjmNxK7dBpoFUWnl/FqFGOecQMA 4DlfSFYxFG6XPRwePuLKCSE1lb0NCV3ykdNeD/pD8Gug7pnjOvsquqdXqCmepddEtF QXDqMq3zV4srsqNKi1bfhoAVJqCbfTC4m/p2g60s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45888: md/raid1: fix memory leak in raid1_run() Date: Wed, 27 May 2026 14:18:50 +0200 Message-ID: <2026052717-CVE-2026-45888-05b2@gregkh> X-Mailer: git-send-email 2.54.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2699; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3HwsLQe4OTmDzGUV11hDujOdfiL41WPLvLUi5S+tJtc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFliDzl5DisY3X7RY/3B8/Xqxc7nPa7uVO1T/d4h9+G5c OkyQx33jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIqSLDgvZDeVu3pNawPKr4 lvLtyuzz5pclrBjmR76yvrKKdaft8dwPZuXL6tUFV83xAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== 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. The Linux kernel CVE team has assigned CVE-2026-45888 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 97894f7d3c2966164516a8a5109674763d3a55e1 and fixed in 6.12.75 with commit c94fd6e8a71efd047ff36930e840f3c25679e136 Issue introduced in 6.9 with commit 97894f7d3c2966164516a8a5109674763d3a55e1 and fixed in 6.18.14 with commit ec10e3dc93994b87adf7c759a4639fe34013989a Issue introduced in 6.9 with commit 97894f7d3c2966164516a8a5109674763d3a55e1 and fixed in 6.19.4 with commit b37588b0282a2b3cdda9db1d53712745ce66dea0 Issue introduced in 6.9 with commit 97894f7d3c2966164516a8a5109674763d3a55e1 and fixed in 7.0 with commit 6abc7d5dcf0ee0f85e16e41c87fbd06231f28753 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-45888 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/md/raid1.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/c94fd6e8a71efd047ff36930e840f3c25679e136 https://git.kernel.org/stable/c/ec10e3dc93994b87adf7c759a4639fe34013989a https://git.kernel.org/stable/c/b37588b0282a2b3cdda9db1d53712745ce66dea0 https://git.kernel.org/stable/c/6abc7d5dcf0ee0f85e16e41c87fbd06231f28753