Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 69FC1346FDF for ; Wed, 24 Dec 2025 13:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581838; cv=none; b=kmqoEQErnf7C2j5DEFWGz+yrpA96Z9WYLxHUmw+alHieZH4PrWRtNlmKESRTL8yTHboAcXG1wS2WhzU4597S12wrkEh0lLcfsTJKFiKgnsS/k+S3dPg48JlSAVvV9UfFScNVr8Rc1w2Hmz7KhYVnLfLb6/CeyVn54sVGqbc2ulo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766581838; c=relaxed/simple; bh=BDmmtLUyrf9ct+zYvOrDwj8d3nbgV1lg6kCD+LX05ok=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=U/v4QcKd4fKVP4d9ISQ0QiwAUpdSIchXWkjT7zgmjbGXe9KPaHlr46FekVz6pBwTscfGtpdfv2DmCk8vcGwzL/tPOozONJtGsyYTN5v4HgmzQuelu34GT9QcIp1z5HBGH+CiOoatqrPuGWYUqUyz3KO5pPJrzuMMaVX6zAUPTnI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iDlk+qW3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="iDlk+qW3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E17B6C4CEFB; Wed, 24 Dec 2025 13:10:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1766581838; bh=BDmmtLUyrf9ct+zYvOrDwj8d3nbgV1lg6kCD+LX05ok=; h=From:To:Cc:Subject:Date:Reply-To:From; b=iDlk+qW3SvCo0DKOlSAHVlVLpx+vKJcCvRRgxIOpcPxG4+c2dYuV/JFi1VdqeCM7M xbTVJWbE74qzz+vo7ZO/boj+ZXrmfqksT/JMcyhhGuXSw0Jc0q5VXvkaFTqWS2IPdA RbgZ2AsIn9RGRvzd8QdnR0KWjgqD4j6uVvRswmrM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-54123: md/raid10: fix memleak for 'conf->bio_split' Date: Wed, 24 Dec 2025 14:07:20 +0100 Message-ID: <2025122417-CVE-2023-54123-4e1b@gregkh> X-Mailer: git-send-email 2.52.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=3326; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aMkr08QkDUz6KCdIZdmYYt9HPxs1Sz6SQGSi36nnB8M=; b=owGbwMvMwCRo6H6F97bub03G02pJDJneTz13F7/iD5iVd/m9/uTlc/54HnG/0RBls7gha5/k7 Yw7r/y+dcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEuNgY5tnPOvUy/OANP52u DYf9fA11FyX+38IwP7fxE/+Xu73VmrPsle8csP+XGLdwHQA= 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/raid10: fix memleak for 'conf->bio_split' In the error path of raid10_run(), 'conf' need be freed, however, 'conf->bio_split' is missed and memory will be leaked. Since there are 3 places to free 'conf', factor out a helper to fix the problem. The Linux kernel CVE team has assigned CVE-2023-54123 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit fc9977dd069e4f82fcacb262652117c488647319 and fixed in 4.19.283 with commit 133008af833b4f2e021d2c294c29c70364a3f0ba Issue introduced in 4.12 with commit fc9977dd069e4f82fcacb262652117c488647319 and fixed in 5.4.243 with commit b6460f68c1cc95a80d089af402be501619f228e4 Issue introduced in 4.12 with commit fc9977dd069e4f82fcacb262652117c488647319 and fixed in 5.10.180 with commit 6361b0592b46c465ac926c1f3105d66c30d9658b Issue introduced in 4.12 with commit fc9977dd069e4f82fcacb262652117c488647319 and fixed in 5.15.111 with commit 7f673fa34c0e3f95ee951a1bbf61791164871d2e Issue introduced in 4.12 with commit fc9977dd069e4f82fcacb262652117c488647319 and fixed in 6.1.28 with commit b21019a220d9cac08819bb6c63000de9ee61eb9e Issue introduced in 4.12 with commit fc9977dd069e4f82fcacb262652117c488647319 and fixed in 6.2.15 with commit 5cba3e26c073b535e4e3b825ea481fb29c53943b Issue introduced in 4.12 with commit fc9977dd069e4f82fcacb262652117c488647319 and fixed in 6.3.2 with commit e2fec8d95353a48634b085011626ba3ec8ab8b1c Issue introduced in 4.12 with commit fc9977dd069e4f82fcacb262652117c488647319 and fixed in 6.4 with commit c9ac2acde53f5385de185bccf6aaa91cf9ac1541 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-2023-54123 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/raid10.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/133008af833b4f2e021d2c294c29c70364a3f0ba https://git.kernel.org/stable/c/b6460f68c1cc95a80d089af402be501619f228e4 https://git.kernel.org/stable/c/6361b0592b46c465ac926c1f3105d66c30d9658b https://git.kernel.org/stable/c/7f673fa34c0e3f95ee951a1bbf61791164871d2e https://git.kernel.org/stable/c/b21019a220d9cac08819bb6c63000de9ee61eb9e https://git.kernel.org/stable/c/5cba3e26c073b535e4e3b825ea481fb29c53943b https://git.kernel.org/stable/c/e2fec8d95353a48634b085011626ba3ec8ab8b1c https://git.kernel.org/stable/c/c9ac2acde53f5385de185bccf6aaa91cf9ac1541