block: fix adding folio to bio
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.12.336.14.26.15In 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.
From the CVE record · Linux
The Linux kernel can fail to add a folio to a bio when a folio exceeds 4 GB and its offset cannot fit in an unsigned int. This can cause a warning and I/O failure on architectures that support such folios, such as aarch64 with 16 GB hugepages. The input does not describe an attacker action, access requirement, or user interaction.
Engineers running Linux kernels on architectures that support folios larger than 4 GB should check their versions; affected versions are not specified.