CVE-2025-22122: Linux kernel · block: fix adding folio to bio
Source GCVE Database
Not known to be exploited · CVSS 5.5 Medium.
Data as of 29 Oct 2026, 23:52 UTC
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
AI-suggested
A fix has been implemented in the Linux kernel to address this issue by adjusting the page and trimming the offset to prevent overflow. Users should apply the official kernel update that includes this fix. No other mitigation steps are indicated.
Description
CVE-2025-22122 is a medium severity vulnerability in the Linux kernel related to the block layer's handling of folios in bio structures. On some architectures like aarch64 with large hugepages (e.g., 16GB), the offset of a folio can exceed the capacity of an unsigned int, causing warnings and IO failures. The issue is fixed by adjusting the page and trimming the offset to prevent overflow in the bi_offset field, allowing folios to be added to bio successfully.
References
- nvd.nist.gov/vuln/detail/CVE-2025-22122 (opens in a new tab)
- git.kernel.org/stable/c/0c60158ff14df04c92792dd9b1809372b095040f (opens in a new tab)
- git.kernel.org/stable/c/26064d3e2b4d9a14df1072980e558c636fb023ea (opens in a new tab)
- git.kernel.org/stable/c/b96e0af1b1c99cb7e6188b6fa4963a4e47beb01e (opens in a new tab)