Linux kernel out-of-bounds write from wrapped bio size check in iomap
Affects the Linux kernel iomap writeback path for XFS on protection-information LUNs whose SCSI max segment size is 64 KiB, such as lpfc or qla2xxx hosts. Fixed in v7.1+.
- Exploited
- No known exploitation
- Fix
- Fixed in v7.1+
- Who is exposed
- Specific setups only
Summary
Written by a model
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.
Who should check
Teams running Linux kernels with XFS on block devices using T10 protection information (DIX), such as SCSI LUNs behind qla2xxx or lpfc.
“On XFS over a 512B PI LUN behind qla2xxx”
What to do
Check whether your setup matches what the bug needs.
Filesystem issues integrity (PI/DIX) I/O, e.g. XFS on a protection-information LUN SCSI host max segment size left at 64 KiB, e.g. lpfc or qla2xxx Large folios of up to 2 MiB in use, as on XFSUpgrade to a fixed version: v7.1+.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-99845 (iomap: keep large chunks from defeating the bio cap), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-99845 (entry last updated 2026-12-01):
Affected:
- Linux Linux: version range not reported
- Linux Linux: versions 7.1
Fixed versions: v7.1+.
Conditions (all must be true for the bug to be hit):
- Filesystem issues integrity (PI/DIX) I/O, e.g. XFS on a protection-information LUN (source: https://www.cve.org/CVERecord?id=CVE-2026-99845)
- SCSI host max segment size left at 64 KiB, e.g. lpfc or qla2xxx (source: https://www.cve.org/CVERecord?id=CVE-2026-99845)
- Large folios of up to 2 MiB in use, as on XFS (source: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=eb8ab8c23e71c6ae77dedc45de2a57a61558e5d5)
Setup: the bug is reachable in a default setup; no special feature or setting is needed.
Attacker needs: local access, low-privilege login, no user action.
CISA KEV: CVE-2026-99845 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-99845 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://git.kernel.org/stable/c/3ace65e1001ea5fa82a178a1d3178fef1f6da3a2
- https://git.kernel.org/stable/c/eb8ab8c23e71c6ae77dedc45de2a57a61558e5d5
- https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=eb8ab8c23e71c6ae77dedc45de2a57a61558e5d5
- https://www.cve.org/CVERecord?id=CVE-2026-99845
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-99845
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-99845"}.Affected versions
- Linux LinuxVersion range not reported
- Linux Linux7.1
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure5/25Specific setups only
- Reach20/20Affects Linux kernel (software on nearly every server, desktop or phone)
- Severity7.8/10CVSS 7.8
- No patch0/5No signal
What would change the score
- Would score about 83 if added to CISA KEV
- Would score about 78 if CISA's SSVC rates exploitation active
- Would score about 43 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now1 day
- Record last updated
- Posted on X by cve.now
Evidence 4
| Kind | Source |
|---|---|
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-99845 |
| Record | NVD · CVE-2026-99845 |
| Other links 2 | |
| Link | git.kernel.org · stable/c/3ace65e1001ea5fa82a178a1d3178fef1f6da3a2 |
| Link | git.kernel.org · stable/c/eb8ab8c23e71c6ae77dedc45de2a57a61558e5d5 |
Questions about CVE-2026-99845
Is CVE-2026-99845 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
Large chunks of integrity (PI/DIX) I/O can get past the bio size cap in the kernel's iomap writeback code. This corrupts kernel heap and page memory, which a local user could use to forge kernel structures and leak data, and can crash or panic the host.
Source: cve.org, git.kernel.org
Which versions are affected by CVE-2026-99845?
Linux: version 7.1.
Source: cve.now feed data
Am I affected, and how do I check?
The issue involves the Linux kernel with integrity I/O where the SCSI host max segment size is left at 64 KiB and large folios of up to 2 MiB are used, such as XFS on a protection-information LUN. To check, look at the max_segment_size of the SCSI host or device and whether the filesystem is XFS on a PI-formatted device.
Source: cve.org, git.kernel.org
How do I fix CVE-2026-99845?
Upgrade to a Linux kernel from v7.1 or later, which contains the fix.
Source: cve.org, git.kernel.org
Related
- CVE-2026-142948i2c: designware: queue only one read command for block reads
- CVE-2026-142947cxl/core: Skip einj_inject creation when devm_add_action_or_reset() fails
- CVE-2026-142946ASoC: amd: acp-es8336: Switch to use acpi_bus_get_primary_device()
- CVE-2026-142945ASoC: amd: acp3x-es83xx: Switch to use acpi_bus_get_primary_device()
- CVE-2026-142944ASoC: amd: acp-es8336: Use an owned codec device reference
- CVE-2026-142943ASoC: amd: acp3x-es83xx: Keep an owned codec device reference
No corrections so far. Something wrong on this page? Report an error.