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 C361713F456 for ; Mon, 24 Jun 2024 13:51:01 +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=1719237061; cv=none; b=DfyR8QM7jWsVsyNdivac8m43qmx9jkunz+bIuCX0GJVyrjIFP0o78WRVwFGkUW0SaOW2kdK7S4DGr6CGiUM2oorI+HytHgVWw8dLxHrn79NmlhVRWTnzjeCj27HL8Ih68E7GI+7bDFgB89Rt4BvgiQh+UU+i1BCxpJx1m79x4U4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719237061; c=relaxed/simple; bh=lkG7yd6/EjlgYXFF6xxl4U0cTYMMynDKrYQBgrrHS6U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CM8EyXyDmGCRaPCdikCB23BfMtKzb0rjkLW28vXoryUhR2lmetHoaA4BR8wYGEKGN+3yGCqVaaV6LL0m5B7Edbi9VV7OmHuA6urcD55Zd93oZmkhtUFW5IRs90w3HFABr1ryKBT8MbGV4qL88LE1JZEth58XJLOjEBkMuEn2lHk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Z4Jguif7; 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="Z4Jguif7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1E387C32789; Mon, 24 Jun 2024 13:51:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719237061; bh=lkG7yd6/EjlgYXFF6xxl4U0cTYMMynDKrYQBgrrHS6U=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Z4Jguif7Hb9p2B6FCdei92006at9jvWtmcZW8T3m97buHzd8D62gw1g9z4XJ6cRDc pYapSN6sGvKtQfArOG/1gxXnwZIVUnfZlwDM0300altIEKVpRLOTIxbmVugSYZelWI qUnCoWBKx2z4VkQdEjqIR+j+52XCrctnRg7Ib8EI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38663: blk-cgroup: fix list corruption from resetting io stat Date: Mon, 24 Jun 2024 15:50:57 +0200 Message-ID: <2024062457-CVE-2024-38663-a1bc@gregkh> X-Mailer: git-send-email 2.45.2 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=2099; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lkG7yd6/EjlgYXFF6xxl4U0cTYMMynDKrYQBgrrHS6U=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmVlQfZLba5LsveveXTSqctj8InuUjMSWYI/GsQbn7ik r3ZuaWWHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR1SwM85QvMMhGqTpWhaUc Dvs+o/BRuPjCPoYFm29csN0n+qE0S5RxY22Y3JVtOjsuAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: blk-cgroup: fix list corruption from resetting io stat Since commit 3b8cc6298724 ("blk-cgroup: Optimize blkcg_rstat_flush()"), each iostat instance is added to blkcg percpu list, so blkcg_reset_stats() can't reset the stat instance by memset(), otherwise the llist may be corrupted. Fix the issue by only resetting the counter part. The Linux kernel CVE team has assigned CVE-2024-38663 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 3b8cc6298724 and fixed in 6.6.33 with commit d4a60298ac34 Issue introduced in 6.2 with commit 3b8cc6298724 and fixed in 6.9.4 with commit 89bb36c72e19 Issue introduced in 6.2 with commit 3b8cc6298724 and fixed in 6.10-rc1 with commit 6da668063279 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-2024-38663 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/d4a60298ac34f027a09f8f893fdbd9e06279bb24 https://git.kernel.org/stable/c/89bb36c72e1951843f9e04dc84412e31fcc849a9 https://git.kernel.org/stable/c/6da6680632792709cecf2b006f2fe3ca7857e791