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

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 8% of CVEs (2026-12-01)
- Published: 2026-11-30T13:17:35.546Z
- Modified: 2026-12-01T06:17:53.020Z
- Assigned by: Linux

## Description

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 max_integrity_io_size()
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->bi_iter.bi_size > iomap_max_bio_size(iomap) - len

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

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
bio_integrity_alloc_buf() 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0b10a370529cbd7b918c1eef43d409e43d9e0b78 before 3ace65e1001ea5fa82a178a1d3178fef1f6da3a2; from 0b10a370529cbd7b918c1eef43d409e43d9e0b78 before eb8ab8c23e71c6ae77dedc45de2a57a61558e5d5; 7.1 (not affected: before 7.1; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/3ace65e1001ea5fa82a178a1d3178fef1f6da3a2>
- <https://git.kernel.org/stable/c/eb8ab8c23e71c6ae77dedc45de2a57a61558e5d5>

## Sources

- CVE List: [CVE-2026-99845](https://www.cve.org/CVERecord?id=CVE-2026-99845), CVE Terms of Use, modified 2026-12-01
- NVD: [CVE-2026-99845](https://nvd.nist.gov/vuln/detail/CVE-2026-99845), Public domain, modified 2026-12-01

---

Page: https://cve.day/CVE-2026-99845 · Whole record: https://cve.day/CVE-2026-99845.json · Rebuilt by cve.day 2026-12-01T06:32:24.211Z
