| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2025-21665: filemap: avoid truncating 64-bit offset to 32 bits |
| |
| 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 |