From mboxrd@z Thu Jan 1 00:00:00 1970 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 3C3631F16B for ; Sat, 11 Jan 2025 14:49:20 +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=1736606961; cv=none; b=RoKfF8xooxERv9o/gCidYqeh2WV55OI30uOTMZKa/sCJ89zhZuiVg5QQwhzgeTQB1s8F98DalF200VVKyo7JeKK02xuWZGWQ4F34sUJY7MoTY3GX5KV9rsxRbwCKYJC8qBdYHWc/9JspjM4ATJG4p1odiGKhKiSwgBTCf+Im7fk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736606961; c=relaxed/simple; bh=Y766db8i1fjXsmL6gbP6sH0tIeSe42GeDiWuwqTI+1g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=mtrYyhJn1q9j2vRIBt390LTsDv9JiJGvM5f8/wFdsVrDC//fHJsTkZpwQN44WYDnYlkt+LqXO/WmvZ3nh4S9AqEzAPBlH2IaK9Lt16bRvoi3aiAhIMtYTeFd/cctjRtT7LcwOWt2kWS2qnixeB8/e+DUPSSh4Ka/y0hgDmjMPpI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XLTruWT3; 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="XLTruWT3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6981EC4CED2; Sat, 11 Jan 2025 14:49:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736606960; bh=Y766db8i1fjXsmL6gbP6sH0tIeSe42GeDiWuwqTI+1g=; h=From:To:Cc:Subject:Date:Reply-to:From; b=XLTruWT3wlFvDs67ACZn78YtFzRmIpJELIIBtoiVfk8dCf+IwuU60fdThA/VDnaLA oCUSiXP/04SSybIM6G5fukFnCOZI/rMXJmG3SKUL59brX8/qa9JvoRBwNjvjWzadk9 9GFjNBDicCeHcDHSpoDh7nOvd87k6r25CvjyNOD8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-57875: block: RCU protect disk->conv_zones_bitmap Date: Sat, 11 Jan 2025 15:49:08 +0100 Message-ID: <2025011107-CVE-2024-57875-7902@gregkh> X-Mailer: git-send-email 2.48.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=2352; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y766db8i1fjXsmL6gbP6sH0tIeSe42GeDiWuwqTI+1g=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlNLY9d1RhZrX6nnVl+3UvCW/TY95pXyzakqJ88+j9qA cv38MNnOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi8/kYFqyWPZs3kWVz4s3C TsdH8orcuSx5yQwLNiuVzJZ09U87krGrJGP9z2WZ98QTAQ== 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: block: RCU protect disk->conv_zones_bitmap Ensure that a disk revalidation changing the conventional zones bitmap of a disk does not cause invalid memory references when using the disk_zone_is_conv() helper by RCU protecting the disk->conv_zones_bitmap pointer. disk_zone_is_conv() is modified to operate under the RCU read lock and the function disk_set_conv_zones_bitmap() is added to update a disk conv_zones_bitmap pointer using rcu_replace_pointer() with the disk zone_wplugs_lock spinlock held. disk_free_zone_resources() is modified to call disk_update_zone_resources() with a NULL bitmap pointer to free the disk conv_zones_bitmap. disk_set_conv_zones_bitmap() is also used in disk_update_zone_resources() to set the new (revalidated) bitmap and free the old one. The Linux kernel CVE team has assigned CVE-2024-57875 to this issue. Affected and fixed versions =========================== Fixed in 6.12.5 with commit 493326c4f10cc71a42c27fdc97ce112182ee4cbc Fixed in 6.13-rc1 with commit d7cb6d7414ea1b33536fa6d11805cb8dceec1f97 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-57875 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-zoned.c include/linux/blkdev.h 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/493326c4f10cc71a42c27fdc97ce112182ee4cbc https://git.kernel.org/stable/c/d7cb6d7414ea1b33536fa6d11805cb8dceec1f97