CVE-2026-99845: iomap: keep large chunks from defeating the bio cap

Published Nov 30, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

iomap: keep large chunks from defeating the bio cap

For integrity I/O a bio must not grow beyond maxintegrityiosize() because the integrity buffer is a single allocation of at most 2 MiB. Writeback and buffered reads check that before adding to a bio:

bio->biiter.bisize > iomapmaxbiosize(iomap) - len

The subtraction is done in sizet and wraps if len alone is above the limit. The check then never fires and the bio grows until it runs out of biovecs.

That's easy to hit. The limit is also capped by the maximum segment size which is 64 KiB for SCSI hosts that don't set it, such as lpfc and qla2xxx, and XFS uses folios of up to 2 MiB. Writeback of a preallocated 300 MiB file then builds a single bio that needs 4.7 MiB of PI with 512 byte sectors and 8 byte tuples. That's more than kmalloc() can do, so biointegrityallocbuf() falls back to a 2 MiB mempool element and generating the PI writes 2.7 MiB past its end.

Check the length on its own first. A chunk above the limit still gets a bio of its own which is never larger than a folio.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Check the chunk length against iomap_max_bio_size(iomap) on its own before subtracting len from the bio-size limit, so the subtraction cannot wrap when len exceeds the limit.

Event History

Nov 30, 2026
CVE Published
via MITRE·01:17 PM
Data Sourced
via MITRE·01:17 PM
Description

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203