5.5medium
block: fix adding folio to bio
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.19% (higher than 8% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: block: fix adding folio to bio >4GB folio is possible on some ARCHs, such as aarch64, 16GB hugepage is supported, then 'offset' of folio can't be held in 'unsigned int', cause warning in bio_add_folio_nofail() and IO failure. Fix it by adjusting 'page' & trimming 'offset' so that `->bi_offset` won't be overflow, and folio can be added to bio successfully.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from ed9832bc08db29874600eb066b74918fe6fc2060 before 0c60158ff14df04c92792dd9b1809372b095040f, from ed9832bc08db29874600eb066b74918fe6fc2060 before b96e0af1b1c99cb7e6188b6fa4963a4e47beb01e, from ed9832bc08db29874600eb066b74918fe6fc2060 before 26064d3e2b4d9a14df1072980e558c636fb023ea, 6.12 Not affected: before 6.12, from 6.12.33 up to 6.12.*, from 6.14.2 up to 6.14.*, from 6.15 up to * | CVE List |
| linux linux_kernel | from 6.12 before 6.12.33, from 6.13 before 6.14.2 | NVD |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: block: fix adding folio to bio >4GB folio is possible on some ARCHs, such as aarch64, 16GB hugepage is supported, then 'offset' of folio can't be held in 'unsigned int', cause warning in bio_add_folio_nofail() and IO failure. Fix it by adjusting 'page' & trimming 'offset' so that `->bi_offset` won't be overflow, and folio can be added to bio successfully.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: bloque: corrección. Se permite añadir un folio a la biografía a partir de 4 GB en algunos ARCH, como aarch64. Se admite una página enorme de 16 GB. En ese caso, el desplazamiento del folio no se puede guardar en una entero sin signo, lo que provoca una advertencia en bio_add_folio_nofail() y un fallo de E/S. Se soluciona ajustando la página y recortando el desplazamiento para que `->bi_offset` no se desborde y el folio se pueda añadir a la biografía correctamente.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-22122 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-22122 changed 2026-06-17 | Public domain |