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 0C4EE27A47F for ; Thu, 4 Sep 2025 15:34:51 +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=1757000092; cv=none; b=Jcq1a58XiC34HsKL86xD/oCgMPANjEQrl1KEO8gNVwSZK6AAzfjuUj7nzVYioCCVnZtL3BFC9Uhvp4svOKv95z1G0Ac61+t7aVCPz5ORwPLmkLgX+TIRPgPcksRh7qWnYvUWurZamQ4/mYnXGd4r0k+NGEW1fR/p1FHZuVLpz5o= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757000092; c=relaxed/simple; bh=j0PXk/3Q5ohd4rNCNcBX+ZuL3Ts2G8htnfzmakfWaxA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=AHcwtrsO8Mpvo8JayvzfZ7St4o8GX/O7V/iHbHkoprUDlOcQMs8d9FkxB8KCZzibpVtHaA8fyp6AWjzbdRg6eU+MD+a8FhqAqPcCy4tNKQwS3V7azGu7VHjVbxYUynlkOCSRPGJEWlfJKVE3N4Lqzofwu/TLSwYnmIaX//8NENE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=AWMcgfcM; 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="AWMcgfcM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 62D44C4CEF1; Thu, 4 Sep 2025 15:34:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757000091; bh=j0PXk/3Q5ohd4rNCNcBX+ZuL3Ts2G8htnfzmakfWaxA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=AWMcgfcMkmabPXFRlIfZLHL1oSUVwtKwRpOKEUjP7oZBdT05F+Y58QiviOl4nPHXR z5+JmSZY5xEvGqTE9znRlCpns7/ZeVDhAIt6lMbqKzlAAfWgI+RwrOWOUE/6YGt3XO ZjJqbn2Wu1oYZAAo1cALrx2V1JB4T07OFKM7EIkA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38715: hfs: fix slab-out-of-bounds in hfs_bnode_read() Date: Thu, 4 Sep 2025 17:33:20 +0200 Message-ID: <2025090458-CVE-2025-38715-8464@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=3052; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zYWqJziXurM57WeGHuy+IlxOpmHFd5YrjEYCEO5a6yw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk7N2odzg6NyuI8Xpu5ryG+wK29xKBSI7FRpn3/yWmVm 6/IMnl1xLIwCDIxyIopsnzZxnN0f8UhRS9D29Mwc1iZQIYwcHEKwEQWRTDM4U/cEHDlD2PD2+Y1 vrc6liyxDfZVYlhwZdWEHt+JjzKvfZD+XZoccpohx7sbAA== 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: hfs: fix slab-out-of-bounds in hfs_bnode_read() This patch introduces is_bnode_offset_valid() method that checks the requested offset value. Also, it introduces check_and_correct_requested_length() method that checks and correct the requested length (if it is necessary). These methods are used in hfs_bnode_read(), hfs_bnode_write(), hfs_bnode_clear(), hfs_bnode_copy(), and hfs_bnode_move() with the goal to prevent the access out of allocated memory and triggering the crash. The Linux kernel CVE team has assigned CVE-2025-38715 to this issue. Affected and fixed versions =========================== Fixed in 5.4.297 with commit e7d2dc2421e821e4045775e6dc226378328de6f6 Fixed in 5.10.241 with commit 67ecc81f6492275c9c54280532f558483c99c90e Fixed in 5.15.190 with commit a1a60e79502279f996e55052f50cc14919020475 Fixed in 6.1.149 with commit fe2891a9c43ab87d1a210d61e6438ca6936e2f62 Fixed in 6.6.103 with commit 384a66b89f9540a9a8cb0f48807697dfabaece4c Fixed in 6.12.43 with commit efc095b35b23297e419c2ab4fc1ed1a8f0781a29 Fixed in 6.15.11 with commit fc7f732984ec91f30be3e574e0644066d07f2b78 Fixed in 6.16.2 with commit eec522fd0d28106b14a59ab2d658605febe4a3bb Fixed in 6.17-rc1 with commit a431930c9bac518bf99d6b1da526a7f37ddee8d8 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-2025-38715 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: fs/hfs/bnode.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/e7d2dc2421e821e4045775e6dc226378328de6f6 https://git.kernel.org/stable/c/67ecc81f6492275c9c54280532f558483c99c90e https://git.kernel.org/stable/c/a1a60e79502279f996e55052f50cc14919020475 https://git.kernel.org/stable/c/fe2891a9c43ab87d1a210d61e6438ca6936e2f62 https://git.kernel.org/stable/c/384a66b89f9540a9a8cb0f48807697dfabaece4c https://git.kernel.org/stable/c/efc095b35b23297e419c2ab4fc1ed1a8f0781a29 https://git.kernel.org/stable/c/fc7f732984ec91f30be3e574e0644066d07f2b78 https://git.kernel.org/stable/c/eec522fd0d28106b14a59ab2d658605febe4a3bb https://git.kernel.org/stable/c/a431930c9bac518bf99d6b1da526a7f37ddee8d8