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 16E1418C31 for ; Fri, 31 Jan 2025 11:31: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=1738323068; cv=none; b=QE3Qg35FMX2qn4ht+uWYX+fpbCy+Jkx8padvkV0daE5GMWnCRQn9zU33zau3OuEKS8d2gnb+ulvKk5z5cE+7w3gm3kzI6+ezBbR2hyRd45T7ecHf9qckqLu6u8ReUROZNX+MgW20zhCofBPMR94I/BT2LnJwLbsbWCiZMpYUsj4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1738323068; c=relaxed/simple; bh=eVls6x19F1vsvpovDIU2Z6Cv3hsCkeiADay6j6XvH8c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=quSCrmfmDLV5Z6ypAW2qnzXk4Hzi+thnOhvi+e9tcuRPG2rcg2qabnb8lWw7zkBpJgACKdGk1UsyTGdBT2hD6qDF3flrTNIcTsh7vI+UREs3vjTl8q5GqG0j/QpaZkGbHbK4i45MFG4kD9OUE9o0mapm7PHxsTkk54mrsqKGl9w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X63d0Sij; 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="X63d0Sij" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2051AC4CED1; Fri, 31 Jan 2025 11:31:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1738323067; bh=eVls6x19F1vsvpovDIU2Z6Cv3hsCkeiADay6j6XvH8c=; h=From:To:Cc:Subject:Date:Reply-to:From; b=X63d0Sij940U6fC8nDWaCuKMu+OWCjHn7EaKW00dnrZLG2dzKVyVoGMdNI39d+ocG 7g1lra4cjgFvyUGFXti2roQylaTj0rw4fOoiOj+6U+wwHElkBHFLcEniW0e2g80Smx myBwtBLOf8SfS9df/eBP5s0HfqcNueoUkyuYaDVw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21665: filemap: avoid truncating 64-bit offset to 32 bits Date: Fri, 31 Jan 2025 12:30:57 +0100 Message-ID: <2025013157-CVE-2025-21665-d6a2@gregkh> X-Mailer: git-send-email 2.48.1 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=2604; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eVls6x19F1vsvpovDIU2Z6Cv3hsCkeiADay6j6XvH8c=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlzthRGd3e8+vrmltbTuztjXA9PO/4p6/M36+c83iaTp acFrT//tyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmwrWIYcEJVa4rC7f+juL7 anaygmX27bDpVYcZ5hnya82If3CogLvFJU/8w/zFkw5KLwAA 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: filemap: avoid truncating 64-bit offset to 32 bits On 32-bit kernels, folio_seek_hole_data() was inadvertently truncating a 64-bit value to 32 bits, leading to a possible infinite loop when writing to an xfs filesystem. The Linux kernel CVE team has assigned CVE-2025-21665 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d and fixed in 5.15.177 with commit 64e5fd96330df2ad278d1c4edcca581f26e5f76e Issue introduced in 5.12 with commit 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d and fixed in 6.1.127 with commit 80fc836f3ebe2f2d2d2c80c698b7667974285a04 Issue introduced in 5.12 with commit 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d and fixed in 6.6.74 with commit 09528bb1a4123e2a234eac2bc45a0e51e78dab43 Issue introduced in 5.12 with commit 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d and fixed in 6.12.11 with commit 280f1fb89afc01e7376f59ae611d54ca69e9f967 Issue introduced in 5.12 with commit 54fa39ac2e00b1b8c2a7fe72e648773ffa48f76d and fixed in 6.13 with commit f505e6c91e7a22d10316665a86d79f84d9f0ba76 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-21665 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: mm/filemap.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/64e5fd96330df2ad278d1c4edcca581f26e5f76e https://git.kernel.org/stable/c/80fc836f3ebe2f2d2d2c80c698b7667974285a04 https://git.kernel.org/stable/c/09528bb1a4123e2a234eac2bc45a0e51e78dab43 https://git.kernel.org/stable/c/280f1fb89afc01e7376f59ae611d54ca69e9f967 https://git.kernel.org/stable/c/f505e6c91e7a22d10316665a86d79f84d9f0ba76