{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99845","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.437Z","datePublished":"2026-11-30T13:17:35.546Z","dateUpdated":"2026-12-01T05:43:44.665Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:43:44.665Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\niomap: keep large chunks from defeating the bio cap\n\nFor integrity I/O a bio must not grow beyond max_integrity_io_size()\nbecause the integrity buffer is a single allocation of at most 2 MiB.\nWriteback and buffered reads check that before adding to a bio:\n\n        bio->bi_iter.bi_size > iomap_max_bio_size(iomap) - len\n\nThe subtraction is done in size_t and wraps if len alone is above the\nlimit. The check then never fires and the bio grows until it runs out\nof bio_vecs.\n\nThat's easy to hit. The limit is also capped by the maximum segment size\nwhich is 64 KiB for SCSI hosts that don't set it, such as lpfc and\nqla2xxx, and XFS uses folios of up to 2 MiB. Writeback of a preallocated\n300 MiB file then builds a single bio that needs 4.7 MiB of PI with 512\nbyte sectors and 8 byte tuples. That's more than kmalloc() can do, so\nbio_integrity_alloc_buf() falls back to a 2 MiB mempool element and\ngenerating the PI writes 2.7 MiB past its end.\n\nCheck the length on its own first. A chunk above the limit still gets a\nbio of its own which is never larger than a folio."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The wrapped check in iomap_can_add_to_ioend()/iomap_bio_read_folio_range() is reached by local write()/fallocate()/fsync() on an XFS file. XFS sets IOMAP_F_INTEGRITY on its own and writeback runs iomap_ioend_writeback_submit()->fs_bio_integrity_generate(). No network protocol carries malformed input; the trigger is ordinary large writes.\nAC:L - On XFS over a 512B PI LUN behind qla2xxx (DIX on by default, max_segment_size left at 64 KiB), the attacker picks the state: 2 MiB folios make map_len exceed the cap, the size_t subtraction wraps, and a >256 MiB contiguous writeback bio needs >4 MiB PI. kmalloc then always fails and the overflow follows with no race.\nPR:L - Needs only an ordinary account that can create and write ~300 MiB to its own file on the XFS mount. write, fallocate and fsync on an owned file have no capability checks on the path to iomap_add_to_ioend().\nUI:N - The admin has already mounted the filesystem as part of normal operation. The attacker writes and fsyncs their own file, with no victim action and no attacker-supplied media.\nS:U - Kernel heap/page memory corruption by a local user; the impact stays in the kernel's own security authority with no VM or IOMMU boundary crossed.\nC:H - bio_integrity_alloc_buf() maps a >4 MiB bvec onto a 2 MiB mempool page. blk_integrity_iterate() then walks bvec_iter_page() into physically adjacent pages (slab, page tables, page cache). That much page corruption can be used to forge structures and leak data.\nI:H - About 2.7 MiB of PI tuples are written past the order-9 page. The guard field is a CRC of attacker-chosen file data and the ref tag is a predictable sector number, so this is a large, partly controlled out-of-bounds write into neighbouring kernel memory.\nA:H - Overwriting megabytes of adjacent physical pages during writeback reliably corrupts kernel state and crashes or panics the host, and an unprivileged user can repeat it at will."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/iomap/bio.c","fs/iomap/internal.h","fs/iomap/ioend.c"],"versions":[{"version":"0b10a370529cbd7b918c1eef43d409e43d9e0b78","lessThan":"3ace65e1001ea5fa82a178a1d3178fef1f6da3a2","status":"affected","versionType":"git"},{"version":"0b10a370529cbd7b918c1eef43d409e43d9e0b78","lessThan":"eb8ab8c23e71c6ae77dedc45de2a57a61558e5d5","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/iomap/bio.c","fs/iomap/internal.h","fs/iomap/ioend.c"],"versions":[{"version":"7.1","status":"affected"},{"version":"0","lessThan":"7.1","status":"unaffected","versionType":"semver"},{"version":"7.3.4","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.1","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/3ace65e1001ea5fa82a178a1d3178fef1f6da3a2"},{"url":"https://git.kernel.org/stable/c/eb8ab8c23e71c6ae77dedc45de2a57a61558e5d5"}],"title":"iomap: keep large chunks from defeating the bio cap","x_generator":{"engine":"bippy-1.2.0"}}}}