{"id":"CVE-2025-22122","summary":"block: fix adding folio to bio","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nblock: fix adding folio to bio\n\n\u003e4GB folio is possible on some ARCHs, such as aarch64, 16GB hugepage\nis supported, then 'offset' of folio can't be held in 'unsigned int',\ncause warning in bio_add_folio_nofail() and IO failure.\n\nFix it by adjusting 'page' & trimming 'offset' so that `-\u003ebi_offset` won't\nbe overflow, and folio can be added to bio successfully.","modified":"2026-04-02T12:45:21.766845Z","published":"2025-04-16T14:13:06.509Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22122.json"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/0c60158ff14df04c92792dd9b1809372b095040f"},{"type":"WEB","url":"https://git.kernel.org/stable/c/26064d3e2b4d9a14df1072980e558c636fb023ea"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b96e0af1b1c99cb7e6188b6fa4963a4e47beb01e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22122.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-22122"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"ed9832bc08db29874600eb066b74918fe6fc2060"},{"fixed":"0c60158ff14df04c92792dd9b1809372b095040f"},{"fixed":"b96e0af1b1c99cb7e6188b6fa4963a4e47beb01e"},{"fixed":"26064d3e2b4d9a14df1072980e558c636fb023ea"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22122.json"}}],"schema_version":"1.7.5"}