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 C9D3F313E34 for ; Thu, 18 Sep 2025 16:06:33 +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=1758211593; cv=none; b=NhTplm5wAUhqpJWBFPjrhwzD0te9CbdjXt8nPGZKqG7oj4KOYe9fo3ut6ZMAaKi53LbuCKgJoHyXxtjeY0HV819izPKJ49EVjmzP4tvtMN0rJR2CyIVAuCybpR17BYTFkhFqAa6Q+GmTwwaKWuhTrXGEerB95UdkiNbpxSJGRqw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758211593; c=relaxed/simple; bh=IIruDhcOUd94YSpBzwPUJgaLUq/WkI7IYKUrg60PA+M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ogOt/6kFlNQRFNnkep/wV2mEYwej8SPmaolWbUI0qXWS2HtainnKiW8qjKjEWzLtFeuB+qhreU5wkqd0g32iDDshBuf9irCnlKDy4/CieSuQveNhZtv30c0JEExN2pxafO3w211qvwsPr28Siq7mG+90irWEzJkEUxumNKY62XI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KPpB+k4Y; 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="KPpB+k4Y" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 37ECCC4CEE7; Thu, 18 Sep 2025 16:06:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758211593; bh=IIruDhcOUd94YSpBzwPUJgaLUq/WkI7IYKUrg60PA+M=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KPpB+k4YnfD3Oy4LtLx3gtQqrZ3AzO4cg7qn4bvCrDiyrrkinDzKaRloaO5m6yfsI hfxBQzHryzVj2mEaqRsUq5KrCfqCJZiy2KBy/0V/g5yPpls79YWXLFN8fx/O1e7uB1 llERK3HZd0tijL1XQlyltrzy2Hcys/KzJi0BPBU8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53421: blk-cgroup: Reinit blkg_iostat_set after clearing in blkcg_reset_stats() Date: Thu, 18 Sep 2025 18:04:12 +0200 Message-ID: <2025091855-CVE-2023-53421-0dd9@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=2840; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xuHkXzHH79k3632eybhrISWHzSzIT0SB4iye7jiEkUI=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlndLN/Lar03pRxtFT2x9I9r53mFaRonuZmn+cblvvth /6JzlCtjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI+28M81NdChpb/mzwzaqQ rPXaGD7lN4tQHMM8pajQw6dFV/KXcqg/DHztUXSB54cYAA== 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: blk-cgroup: Reinit blkg_iostat_set after clearing in blkcg_reset_stats() When blkg_alloc() is called to allocate a blkcg_gq structure with the associated blkg_iostat_set's, there are 2 fields within blkg_iostat_set that requires proper initialization - blkg & sync. The former field was introduced by commit 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()") while the later one was introduced by commit f73316482977 ("blk-cgroup: reimplement basic IO stats using cgroup rstat"). Unfortunately those fields in the blkg_iostat_set's are not properly re-initialized when they are cleared in v1's blkcg_reset_stats(). This can lead to a kernel panic due to NULL pointer access of the blkg pointer. The missing initialization of sync is less problematic and can be a problem in a debug kernel due to missing lockdep initialization. Fix these problems by re-initializing them after memory clearing. The Linux kernel CVE team has assigned CVE-2023-53421 to this issue. Affected and fixed versions =========================== Issue introduced in 5.5 with commit f73316482977ac401ac37245c9df48079d4e11f3 and fixed in 6.3.13 with commit b0d26283af612b9e0cc3188b0b88ad7fdea447e8 Issue introduced in 5.5 with commit f73316482977ac401ac37245c9df48079d4e11f3 and fixed in 6.4.4 with commit abbce7f82613ea5eeefd0fc3c1c8e449b9cef2a2 Issue introduced in 5.5 with commit f73316482977ac401ac37245c9df48079d4e11f3 and fixed in 6.5 with commit 3d2af77e31ade05ff7ccc3658c3635ec1bea0979 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-53421 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: block/blk-cgroup.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/b0d26283af612b9e0cc3188b0b88ad7fdea447e8 https://git.kernel.org/stable/c/abbce7f82613ea5eeefd0fc3c1c8e449b9cef2a2 https://git.kernel.org/stable/c/3d2af77e31ade05ff7ccc3658c3635ec1bea0979