CVE-2026-31463
published critical CVSS 3.1 · 9.8iomap: fix invalid folio access when i_blkbits differs from I/O granularity
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb2f35ac4146d32d4424aaa941bbc681f12c1b9e6 to < 4a927f670cdb0def226f9f85f42a9f19d9e09c88 · b2f35ac4146d32d4424aaa941bbc681f12c1b9e6 to < bd71fb3fea9945987053968f028a948997cba8cc · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.19 (affected) · 0 to < 6.19 (unaffected · semver) · 6.19.11 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: iomap: fix invalid folio access when i_blkbits differs from I/O granularity Commit aa35dd5cbc06 ("iomap: fix invalid folio access after folio_end_read()") partially addressed invalid folio access for folios without an ifs attached, but it did not handle the case where 1 << inode->i_blkbits matches the folio size but is different from the granularity used for the IO, which means IO can be submitted for less than the full folio for the !ifs case. In this case, the condition: if (*bytes_submitted == folio_len) ctx->cur_folio = NULL; in iomap_read_folio_iter() will not invalidate ctx->cur_folio, and iomap_read_end() will still be called on the folio even though the IO helper owns it and will finish the read on it. Fix this by unconditionally invalidating ctx->cur_folio for the !ifs case.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The vulnerable iomap buffered-read path can be reached by remote read requests when an in-kernel file server such as ksmbd or nfsd serves an iomap-backed filesystem, passing network-controlled reads into VFS/page-cache read paths. This is a reasonable deployment for Linux storage servers. AC:L - Once the affected filesystem/block-device geometry exists, triggering is a normal buffered read or readahead of a range that submits less than the folio size without an iomap_folio_state. No attacker-uncontrolled race is required for the invalid folio ownership/completion path. PR:N - A remote client can trigger reads through guest or otherwise unauthenticated exported file service configurations without local kernel privileges. Locally, the same path only requires ordinary read access to a file. UI:N - The attacker triggers the bug by issuing read requests directly. No separate victim action is required. S:U - The vulnerable component and impacted resources are within the same kernel security authority. This is not a VM escape, IOMMU bypass, or cross-scope boundary violation. C:H - The stale folio pointer can be accessed after async read completion and, for readahead, after the readahead reference is dropped, making it a plausible use-after-free of page-cache metadata. Following the required higher-severity rule, this memory-safety issue is treated as capable of kernel memory disclosure. I:H - The same invalid folio access and double completion/unlock can corrupt page or folio state, potentially acting on reclaimed or reused memory. Under the higher-severity rule, this is treated as kernel memory corruption with high integrity impact. A:H - The bug can trigger WARN/VM_BUG_ON paths, double-unlock behavior, hangs, or kernel crashes. It is therefore high availability impact.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b2f35ac4146d32d4424aaa941bbc681f12c1b9e6 to < 4a927f670cdb0def226f9f85f42a9f19d9e09c88 (affected · git)b2f35ac4146d32d4424aaa941bbc681f12c1b9e6 to < bd71fb3fea9945987053968f028a948997cba8cc (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.19 (affected)0 to < 6.19 (unaffected · semver)6.19.11 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
iomap: fix invalid folio access when i_blkbits differs from I/O granularity
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 2e3e0755217138f8ef9a1bb0305cc1753ea10b623c49df3b5651f25a93f8c5a1
- Ingested
- 23 Sep 2026, 09:09:24 UTC
- Source record
- Official CVE record