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 ACE4E14A91 for ; Mon, 8 Dec 2025 00:48:08 +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=1765154888; cv=none; b=q9j04RjRcI88kTe8HOGxft+Yf2siYS6IodsgBIhcjGGmi5QSBjX++tqfO3JjqvYCun8h+NZ+BkliXrL/zy2gRS9nbd0GLdiZTdJO9Gy0JjjHzmACuYcgBpXGOCzR7U/oeufkgUM+RML7Aae1N3R/0ihL+p6zHQo3twd09878BnU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765154888; c=relaxed/simple; bh=q0Ip8XyhYg/Ukn6oTxlR6tNWnUCq5TreTUkWBcEnHQ4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WvAEyKnatTIgsk+lZIBIqbMry9mrRk2ecu3/7t8oqkOxtSr6ic8MjhwP/ObOe8v1lHaY7SEV3R12TT4Spjp6QnCop5J7Q0O80QEC8TbQimxvaG+z90pty27mo0b8qJr6nVwJwbTHWaFdiXx2Fbz8mMQ01XDK/1RvUXR+gsDxAQI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=qug2oLQP; 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="qug2oLQP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 038A9C4CEFB; Mon, 8 Dec 2025 00:48:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765154888; bh=q0Ip8XyhYg/Ukn6oTxlR6tNWnUCq5TreTUkWBcEnHQ4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=qug2oLQPnwl5LdpQTrq5cYLKR9zZT0j7sGrAszzHbvDYxVyzufUzH2GI15yiXGnuQ kYBYVL9NLYuozagC7U9mBzib6c24xkQQfEQpYaRLoQ1ePi5tXw0sO5JKN2+m3g1U/q febsfZtHJ5ltznxArAElZPV/0u2LwHmj5RLLQTv8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40312: jfs: Verify inode mode when loading from disk Date: Mon, 8 Dec 2025 09:47:36 +0900 Message-ID: <2025120821-CVE-2025-40312-2743@gregkh> X-Mailer: git-send-email 2.52.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2613; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=j+FBJnVKufD2a953aHZJCOP54iPg4eSJJpPeQP5PFrw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlmClLPH7OnPc1q14/22PtaLziB+bSe+tJPn/ySljLl3 5zWmd7dEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABP5NJNhQbPkvISI3dYbZUQS JdcfWNOmIyC/mWHByb6j7StK+g+8Wrv/y1ULnnv61R8MAA== 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: jfs: Verify inode mode when loading from disk The inode mode loaded from corrupted disk can be invalid. Do like what commit 0a9e74051313 ("isofs: Verify inode mode when loading from disk") does. The Linux kernel CVE team has assigned CVE-2025-40312 to this issue. Affected and fixed versions =========================== Fixed in 5.4.302 with commit 19cce65709a8a2966203653028d9004e28e85bd5 Fixed in 5.10.247 with commit fabc1348bb8fe6bc80850014ee94bd89945f7f4d Fixed in 5.15.197 with commit 46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f Fixed in 6.1.159 with commit 2870a7dec49ccdc3f6ae35da8f5d6737f21133a8 Fixed in 6.6.117 with commit ce054a366c54992185c9514e489a14f145b10c29 Fixed in 6.12.58 with commit 1795277a4e98d82e6451544d43695540cee042ea Fixed in 6.17.8 with commit 8d6a9cbd276b3b85da0e7e98208f89416fed9265 Fixed in 6.18 with commit 7a5aa54fba2bd591b22b9b624e6baa9037276986 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-40312 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/jfs/inode.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/19cce65709a8a2966203653028d9004e28e85bd5 https://git.kernel.org/stable/c/fabc1348bb8fe6bc80850014ee94bd89945f7f4d https://git.kernel.org/stable/c/46c76cfa17d1828c1a889cb54cb11d5ef3dfbc0f https://git.kernel.org/stable/c/2870a7dec49ccdc3f6ae35da8f5d6737f21133a8 https://git.kernel.org/stable/c/ce054a366c54992185c9514e489a14f145b10c29 https://git.kernel.org/stable/c/1795277a4e98d82e6451544d43695540cee042ea https://git.kernel.org/stable/c/8d6a9cbd276b3b85da0e7e98208f89416fed9265 https://git.kernel.org/stable/c/7a5aa54fba2bd591b22b9b624e6baa9037276986