Bug 2360284 (CVE-2025-22122) - CVE-2025-22122 kernel: block: fix adding folio to bio
Summary: CVE-2025-22122 kernel: block: fix adding folio to bio
Keywords:
Status: NEW
Alias: CVE-2025-22122
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:06 UTC by OSIDB Bzimport
Modified: 2025-04-17 09:29 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:06:18 UTC
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.

Comment 1 Avinash Hanwate 2025-04-17 06:55:03 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041628-CVE-2025-22122-c2d1@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.