9.8critical
iomap: adjust read range correctly for non-block-aligned positions
- Severity
- 9.8critical CVSS:3.1 by Linux
- Exploit likelihood
- 0.69% (higher than 53% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- 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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| 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.* | CVE List |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: iomap: ajustar el rango de lectura correctamente para posiciones no alineadas a bloques iomap_adjust_read_range() asume que la posición y la longitud pasadas están alineadas a bloques. Sin embargo, este no siempre es el caso, como se muestra en el caso generado por syzbot para erofs. Esto causa que se salten demasiados bytes para bloques actualizados, lo que resulta en la devolución de una posición y longitud incorrectas para leer. Si todos los bloques están actualizados, esto provoca un desbordamiento negativo de la longitud y devuelve una posición más allá del folio. Corregir el cálculo para también tener en cuenta el desplazamiento del bloque al calcular cuántos bytes pueden ser saltados para bloques actualizados.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68794 changed 2026-10-19 | CVE Terms of Use |
| NVD | CVE-2025-68794 changed 2026-10-19 | Public domain |