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 1A30413FD6D for ; Mon, 24 Jun 2024 13:51:07 +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=1719237068; cv=none; b=ZRi6XplWIKdUhgRglc6M+m/uNeR6VTWeo8moltrzjBd+rsaWO5ez9I7eOxmPfRE+17MfuXSJjz5Ay1AHswu+ji+aGzOOod+iLHqUy7CrEYJchlJEhMFo5asnlGBTpwIpNrSrFRsCuueC3aZ7Gic8Pf1yW0I/gVijChlwLHEqZRM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719237068; c=relaxed/simple; bh=xh1xtNMmqFxY97vUAhAr3p+MRzsW0pZvzLuYLwixioE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Za6Xkrv6tvqE59qGG5QjxgqEiXRi37VIDVqYKEutinWV2dMP4KNdvpcAhezoIcehqTCOLJywh3v9w6QOXPxE/x9xZTneA1zvQuDXeUz1b6wsDpdLfNeuYzZLPcKvU9KtEeV69z+sEynFUtE4ZbLiMh6do2mz6ld86rIKZzXFy0M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wO4uFa4l; 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="wO4uFa4l" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5770AC2BBFC; Mon, 24 Jun 2024 13:51:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1719237067; bh=xh1xtNMmqFxY97vUAhAr3p+MRzsW0pZvzLuYLwixioE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wO4uFa4lZnKga3U6h+ldqx7uRKfqhlbR9Z7iLi+I+HG7HJkzb9MGuM7cXy1HD2vIS ZWKBg5PcAtMrSRarvjDdbXoNeS9J+hEAsImqHP8gfcyKQ38vSibKnIHQIzEcQeqEbJ XHTtxeNMZFsJqippuaSvL/UaKy2E1LdEII9ZBUR0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-38384: blk-cgroup: fix list corruption from reorder of WRITE ->lqueued Date: Mon, 24 Jun 2024 15:50:56 +0200 Message-ID: <2024062455-CVE-2024-38384-47e5@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=2232; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xh1xtNMmqFxY97vUAhAr3p+MRzsW0pZvzLuYLwixioE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmVlfsrWtddOtL0btUSjucS0YIzjua0Tl5y/GTNn9Z1x +TvxXR97IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJfO1hWNC6Mu5nwz6FtIjf tvYaP9KYVvIlKTHMd84pMk7Yy9DZsrrjzal9ojJzgiZPBwA= 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 reorder of WRITE ->lqueued __blkcg_rstat_flush() can be run anytime, especially when blk_cgroup_bio_start is being executed. If WRITE of `->lqueued` is re-ordered with READ of 'bisc->lnode.next' in the loop of __blkcg_rstat_flush(), `next_bisc` can be assigned with one stat instance being added in blk_cgroup_bio_start(), then the local list in __blkcg_rstat_flush() could be corrupted. Fix the issue by adding one barrier. The Linux kernel CVE team has assigned CVE-2024-38384 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 3b8cc6298724 and fixed in 6.6.33 with commit 714e59b5456e Issue introduced in 6.2 with commit 3b8cc6298724 and fixed in 6.9.4 with commit 785298ab6b80 Issue introduced in 6.2 with commit 3b8cc6298724 and fixed in 6.10-rc1 with commit d0aac2363549 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-38384 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/714e59b5456e4d6e4295a9968c564abe193f461c https://git.kernel.org/stable/c/785298ab6b802afa75089239266b6bbea590809c https://git.kernel.org/stable/c/d0aac2363549e12cc79b8e285f13d5a9f42fd08e