# CVE-2025-22122: block: fix adding folio to bio

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2025-04-16T14:13:06.509Z
- Modified: 2026-06-17T08:45:11.787Z
- 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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: from 6.12 before 6.12.33; from 6.13 before 6.14.2

## References

- <https://git.kernel.org/stable/c/0c60158ff14df04c92792dd9b1809372b095040f> (patch)
- <https://git.kernel.org/stable/c/b96e0af1b1c99cb7e6188b6fa4963a4e47beb01e> (patch)
- <https://git.kernel.org/stable/c/26064d3e2b4d9a14df1072980e558c636fb023ea> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2025-22122 · Whole record: https://cve.day/CVE-2025-22122.json · Rebuilt by cve.day 2026-11-25T22:58:56.622Z
