{"id":"CVE-2025-21667","state":"PUBLISHED","title":"iomap: avoid avoid truncating 64-bit offset to 32 bits","description":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: avoid avoid truncating 64-bit offset to 32 bits\n\non 32-bit kernels, iomap_write_delalloc_scan() was inadvertently using a\n32-bit position due to folio_next_index() returning an unsigned long.\nThis could lead to an infinite loop when writing to an xfs filesystem.","publishedAt":"2025-01-31T11:25:31.792Z","updatedAt":"2026-05-23T15:56:50.659Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"CISA-ADP"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"38be53c3fd7f4f4bd5de319a323d72f9f6beb16d","status":"affected","lessThan":"7ca4bd6b754913910151acce00be093f03642725","versionType":"git"},{"version":"f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78","status":"affected","lessThan":"91371922704c8d82049ef7c2ad974d0a2cd1174d","versionType":"git"},{"version":"f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78","status":"affected","lessThan":"402ce16421477e27f30b57d6d1a6dc248fa3a4e4","versionType":"git"},{"version":"f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78","status":"affected","lessThan":"c13094b894de289514d84b8db56d1f2931a0bade","versionType":"git"},{"version":"6.1.92","status":"affected","lessThan":"6.1.127","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/iomap/buffered-io.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.1.127","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.74","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.11","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/iomap/buffered-io.c"]}],"references":["https://git.kernel.org/stable/c/7ca4bd6b754913910151acce00be093f03642725","https://git.kernel.org/stable/c/91371922704c8d82049ef7c2ad974d0a2cd1174d","https://git.kernel.org/stable/c/402ce16421477e27f30b57d6d1a6dc248fa3a4e4","https://git.kernel.org/stable/c/c13094b894de289514d84b8db56d1f2931a0bade","https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"],"weaknesses":["CWE-835"],"ingestedAt":"2026-10-29T20:08:39.238Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/21xxx/CVE-2025-21667.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-21667","state":"PUBLISHED","datePublished":"2025-01-31T11:25:31.792Z","dateUpdated":"2026-05-23T15:56:50.659Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-12-29T08:45:45.733Z"},"containers":{"cna":{"title":"iomap: avoid avoid truncating 64-bit offset to 32 bits","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: avoid avoid truncating 64-bit offset to 32 bits\n\non 32-bit kernels, iomap_write_delalloc_scan() was inadvertently using a\n32-bit position due to folio_next_index() returning an unsigned long.\nThis could lead to an infinite loop when writing to an xfs filesystem."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"38be53c3fd7f4f4bd5de319a323d72f9f6beb16d","status":"affected","lessThan":"7ca4bd6b754913910151acce00be093f03642725","versionType":"git"},{"version":"f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78","status":"affected","lessThan":"91371922704c8d82049ef7c2ad974d0a2cd1174d","versionType":"git"},{"version":"f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78","status":"affected","lessThan":"402ce16421477e27f30b57d6d1a6dc248fa3a4e4","versionType":"git"},{"version":"f43dc4dc3eff028b5ddddd99f3a66c5a6bdd4e78","status":"affected","lessThan":"c13094b894de289514d84b8db56d1f2931a0bade","versionType":"git"},{"version":"6.1.92","status":"affected","lessThan":"6.1.127","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/iomap/buffered-io.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.1.127","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.74","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.11","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.13","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/iomap/buffered-io.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/7ca4bd6b754913910151acce00be093f03642725"},{"url":"https://git.kernel.org/stable/c/91371922704c8d82049ef7c2ad974d0a2cd1174d"},{"url":"https://git.kernel.org/stable/c/402ce16421477e27f30b57d6d1a6dc248fa3a4e4"},{"url":"https://git.kernel.org/stable/c/c13094b894de289514d84b8db56d1f2931a0bade"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:56:50.659Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.92","versionEndExcluding":"6.1.127"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.74"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.13"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":5.5,"attackVector":"LOCAL","baseSeverity":"MEDIUM","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","integrityImpact":"NONE","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"NONE"}},{"other":{"type":"ssvc","content":{"id":"CVE-2025-21667","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2025-10-01T19:52:21.085085Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-835","lang":"en","type":"CWE","description":"CWE-835 Loop with Unreachable Exit Condition ('Infinite Loop')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T19:57:12.595Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T20:58:46.039Z"}}]}}}