# CVE-2025-68794: iomap: adjust read range correctly for non-block-aligned positions

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.69%, higher than 53% of CVEs (2026-12-01)
- Published: 2026-01-13T15:29:05.553Z
- Modified: 2026-10-19T19:17:05.397Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

iomap: adjust read range correctly for non-block-aligned positions

iomap_adjust_read_range() assumes that the position and length passed in
are block-aligned. This is not always the case however, as shown in the
syzbot generated case for erofs. This causes too many bytes to be
skipped for uptodate blocks, which results in returning the incorrect
position and length to read in. If all the blocks are uptodate, this
underflows length and returns a position beyond the folio.

Fix the calculation to also take into account the block offset when
calculating how many bytes can be skipped for uptodate blocks.

(As written by CVE List.)

## Affected

- Linux Linux: from 9dc55f1389f9569acf9659e58dd836a9c70df217 before ce20f49ac9194cf81a77f01d1c316d7c17ae753c; from 9dc55f1389f9569acf9659e58dd836a9c70df217 before 275b37a1e5c2c8abd313e8075f6aec9a349f291b; from 9dc55f1389f9569acf9659e58dd836a9c70df217 before b8c9f25fd84328c5fcc4f70c6d1e8f1d4787eaac; from 9dc55f1389f9569acf9659e58dd836a9c70df217 before 82b60ffbb532d919959702768dca04c3c0500ae5; from 9dc55f1389f9569acf9659e58dd836a9c70df217 before 12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e; from 9dc55f1389f9569acf9659e58dd836a9c70df217 before 142194fb21afe964d2d194cab1fc357cbf87e899; from 9dc55f1389f9569acf9659e58dd836a9c70df217 before 7aa6bc3e8766990824f66ca76c19596ce10daf3e; 4.19 (not affected: before 4.19; from 5.10.267 up to 5.10.*; from 5.15.218 up to 5.15.*; from 6.1.185 up to 6.1.*; from 6.6.120 up to 6.6.*; from 6.12.64 up to 6.12.*; from 6.18.3 up to 6.18.*; from 6.19 up to *)

## References

- <https://git.kernel.org/stable/c/ce20f49ac9194cf81a77f01d1c316d7c17ae753c>
- <https://git.kernel.org/stable/c/275b37a1e5c2c8abd313e8075f6aec9a349f291b>
- <https://git.kernel.org/stable/c/b8c9f25fd84328c5fcc4f70c6d1e8f1d4787eaac>
- <https://git.kernel.org/stable/c/82b60ffbb532d919959702768dca04c3c0500ae5>
- <https://git.kernel.org/stable/c/12053695c8ef5410e8cc6c9ed4c0db9cd9c82b3e>
- <https://git.kernel.org/stable/c/142194fb21afe964d2d194cab1fc357cbf87e899>
- <https://git.kernel.org/stable/c/7aa6bc3e8766990824f66ca76c19596ce10daf3e>

## Sources

- CVE List: [CVE-2025-68794](https://www.cve.org/CVERecord?id=CVE-2025-68794), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2025-68794](https://nvd.nist.gov/vuln/detail/CVE-2025-68794), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-68794 · Whole record: https://cve.day/CVE-2025-68794.json · Rebuilt by cve.day 2026-11-25T22:59:10.534Z
