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 7BDED4C97 for ; Sat, 17 Aug 2024 09:12:03 +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=1723885923; cv=none; b=iHKIpOgfbeq/lskaE0kwkgkiDQqOube1LXAqiijMNDr3W6R3bu+F88YklNTFb+1Q13t+WdPzaLKZE5xxj1Sjrw/3aFlaF4hrUcTzJhto4zD4hmcxukU+FafPRf9NAB+js2BfKwL6IGcXhiYdlmSo9owcZElUNRYt2nqUyQNyC5U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1723885923; c=relaxed/simple; bh=05JMnN3d6jFWLgxcV9uFIaHTxitjENp9Kl9PTY9Cvho=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=h/6CQsHVQhqFGTHm4o6tw1AW+mTxDY7MfHn5HnfJW2L47d5tPg+Mj6inf7Y0KHbXoN9JsQ8MVS2oRwaeT7ZYRLoHAY509yGcwhNPuYD/zQDkndoVhzLLt1waEQsyTo0UW66xCgVKZb4fpS2bdSDEa24cCdkfV6saGZR5dJfGBt8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=xdhq7ZUH; 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="xdhq7ZUH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DBE9AC116B1; Sat, 17 Aug 2024 09:12:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1723885923; bh=05JMnN3d6jFWLgxcV9uFIaHTxitjENp9Kl9PTY9Cvho=; h=From:To:Cc:Subject:Date:Reply-to:From; b=xdhq7ZUHH0fgrEmABCUgF3kNuG7WcDJqkgQenDIVQaamdOK+E8/Z39uUujXnuTduX hZRupS5fKcFBWPafKYt0OK+9ZhtQ5pahPUXZrF+Y62q3i0E5Lh4hAKwK5cA6a6+YP5 EyWX45HXbNmQjr37p5Z2l0qtRIAWzQxisXxwaJ0s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-42299: fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed Date: Sat, 17 Aug 2024 11:10:04 +0200 Message-ID: <2024081748-CVE-2024-42299-a588@gregkh> X-Mailer: git-send-email 2.46.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=2335; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=05JMnN3d6jFWLgxcV9uFIaHTxitjENp9Kl9PTY9Cvho=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkHMu60q22rKjquZcRtF100Ndo7776Qxa0J83L/Zkwy8 TJXu3WrI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZy4CfDPIOTfy4oc4c5belz fzztdfWfXK6EfQwLbir6O8nktLUyr531uSW6REnp+d6NAA== 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: fs/ntfs3: Update log->page_{mask,bits} if log->page_size changed If an NTFS file system is mounted to another system with different PAGE_SIZE from the original system, log->page_size will change in log_replay(), but log->page_{mask,bits} don't change correspondingly. This will cause a panic because "u32 bytes = log->page_size - page_off" will get a negative value in the later read_log_page(). The Linux kernel CVE team has assigned CVE-2024-42299 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit b46acd6a6a62 and fixed in 6.1.103 with commit b90ceffdc975 Issue introduced in 5.15 with commit b46acd6a6a62 and fixed in 6.6.44 with commit 2cac0df3324b Issue introduced in 5.15 with commit b46acd6a6a62 and fixed in 6.10.3 with commit 0a4ae2644e2a Issue introduced in 5.15 with commit b46acd6a6a62 and fixed in 6.11-rc1 with commit 2fef55d8f783 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-42299 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/ntfs3/fslog.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/b90ceffdc975502bc085ce8e79c6adeff05f9521 https://git.kernel.org/stable/c/2cac0df3324b5e287d8020bc0708f7d2dec88a6f https://git.kernel.org/stable/c/0a4ae2644e2a3b3b219aad9639fb2b0691d08420 https://git.kernel.org/stable/c/2fef55d8f78383c8e6d6d4c014b9597375132696