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 EA0132D47E9 for ; Mon, 15 Sep 2025 14:24:41 +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=1757946282; cv=none; b=cophU29eJdW5DckdGul5AtJ0NRWiEJbdWcSXKxzAnIeinOqnF9sT3s4wL3Dx1UxlTdSwiAtbSv4P4/G2DYOdQYMufYXtsuAyVmXzL7yyQk38pU+03QulOMtRX7dvMWo/B8jWkrnkP5fjAF/HYCY4woSERzAB2kxRBCADrffytR8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757946282; c=relaxed/simple; bh=13g+956oAMGU+bSHEMAZBa/h4PcHz9mjf9lSQwQe+r8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=giYfeYdIsW/1kBg4uObdCC75oi8LrNTwZdoElXxqckELzbxhBe92zLCZrcxBS9QdmauvjW/8yk/NcaTFpHM5RdY+V3+SaenNBqTFBBgBfT0teosfqLaARP4cqLScrcnBBnM/OF5M8Q80DV4pkQoxatFelMCjcLuHHW0yL2xf51k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IlJQ3oSY; 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="IlJQ3oSY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BC171C4CEF5; Mon, 15 Sep 2025 14:24:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757946281; bh=13g+956oAMGU+bSHEMAZBa/h4PcHz9mjf9lSQwQe+r8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IlJQ3oSYFVIyE613+u3SEK+fnvdn5Q/pmqetkFOaE/ixdM3kPcm++iYgPvmYeZgCw k6Fi0S9L6br5LNsBrePBe5OAwqnNncCZylIEa5U/3xrYsRoNG+Dz7WppABE3DLfdDp nwdsXA3fvA29QrXbCU+neKcxThc7TueVZhOaarYM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53210: md/raid5-cache: fix null-ptr-deref for r5l_flush_stripe_to_raid() Date: Mon, 15 Sep 2025 16:21:44 +0200 Message-ID: <2025091511-CVE-2023-53210-0e06@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3013; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/Cp3uxoo4ystbARvtnbzxvgidcAKUaTqFo8L3q+N+WQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknFK67SK2+HvhqgZIkO5u0arTd8V0c7loP+K9MS9MIk I04cGddRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExk0z2GBd1RV1faWwpuPbbt fG134tfeBQEOTgwLph260M/jbdSiffvC3NOqM+/sXMSoBQA= 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/raid5-cache: fix null-ptr-deref for r5l_flush_stripe_to_raid() r5l_flush_stripe_to_raid() will check if the list 'flushing_ios' is empty, and then submit 'flush_bio', however, r5l_log_flush_endio() is clearing the list first and then clear the bio, which will cause null-ptr-deref: T1: submit flush io raid5d handle_active_stripes r5l_flush_stripe_to_raid // list is empty // add 'io_end_ios' to the list bio_init submit_bio // io1 T2: io1 is done r5l_log_flush_endio list_splice_tail_init // clear the list T3: submit new flush io ... r5l_flush_stripe_to_raid // list is empty // add 'io_end_ios' to the list bio_init bio_uninit // clear bio->bi_blkg submit_bio // null-ptr-deref Fix this problem by clearing bio before clearing the list in r5l_log_flush_endio(). The Linux kernel CVE team has assigned CVE-2023-53210 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 0dd00cba99c352dc9afd62979f350d808c215cb9 and fixed in 6.1.53 with commit 711fb92606208a8626b785da4f9f23d648a5b6c8 Issue introduced in 5.18 with commit 0dd00cba99c352dc9afd62979f350d808c215cb9 and fixed in 6.4.16 with commit 7a8b6d93991bf4b72b3f959baea35397c6c8e521 Issue introduced in 5.18 with commit 0dd00cba99c352dc9afd62979f350d808c215cb9 and fixed in 6.5.3 with commit e46b2e7be8059d156af8c011dd8d665229b65886 Issue introduced in 5.18 with commit 0dd00cba99c352dc9afd62979f350d808c215cb9 and fixed in 6.6 with commit 0d0bd28c500173bfca78aa840f8f36d261ef1765 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-53210 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/raid5-cache.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/711fb92606208a8626b785da4f9f23d648a5b6c8 https://git.kernel.org/stable/c/7a8b6d93991bf4b72b3f959baea35397c6c8e521 https://git.kernel.org/stable/c/e46b2e7be8059d156af8c011dd8d665229b65886 https://git.kernel.org/stable/c/0d0bd28c500173bfca78aa840f8f36d261ef1765