CVE-2026-138817
publishediomap: don't lose a fiemap iteration error when emitting the last extent
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux7892386d35715d14c469ec98b6deab037e2e2232 to < 904e6876bb9924c8ce8eb83786c68e6404bdb042 · 7892386d35715d14c469ec98b6deab037e2e2232 to < 635bacc0c05d369a0bea6855b354aa08cc0ab690 · 7892386d35715d14c469ec98b6deab037e2e2232 to < 29d93cc25328ec27d34098c722ef837778612dd7 · 7892386d35715d14c469ec98b6deab037e2e2232 to < 512d832beec8d2487e058befb90258e2bce89319 · 7892386d35715d14c469ec98b6deab037e2e2232 to < d6c4a5d2cc6ad695bdc89ce6ac028eac17484b9a · 7892386d35715d14c469ec98b6deab037e2e2232 to < 5d6f21538389fa2b9fa143afdebb4cbe170ec900 · 7892386d35715d14c469ec98b6deab037e2e2232 to < 0d0104adc2c8316433b660cdf6d182a09881864f · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.15 (affected) · 0 to < 5.15 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; Not Affected | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Pending Fix | Not stated | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: iomap: don't lose a fiemap iteration error when emitting the last extent iomap_fiemap() emits extents one behind: iomap_fiemap_iter() flushes the previous extent and remembers the current one, and the remembered extent is written with FIEMAP_EXTENT_LAST after the iteration loop. That final flush overwrites ret, so when ->iomap_begin() fails partway through the iteration the error is replaced by the result of iomap_to_fiemap() (zero on success) and iomap_fiemap() returns success with a truncated extent list whose last entry is wrongly marked as the last extent in the file. The pre-iomap_iter code returned the error from inside the loop, before flushing the pending extent. Check for the iteration error before flushing the pending extent, so that real errors are propagated and only a successful iteration emits the final FIEMAP_EXTENT_LAST extent. -ENOENT (no mapping) is still not an error, and the pending extent is still emitted in that 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.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 7892386d35715d14c469ec98b6deab037e2e2232 to < 904e6876bb9924c8ce8eb83786c68e6404bdb042 (affected · git)7892386d35715d14c469ec98b6deab037e2e2232 to < 635bacc0c05d369a0bea6855b354aa08cc0ab690 (affected · git)7892386d35715d14c469ec98b6deab037e2e2232 to < 29d93cc25328ec27d34098c722ef837778612dd7 (affected · git)7892386d35715d14c469ec98b6deab037e2e2232 to < 512d832beec8d2487e058befb90258e2bce89319 (affected · git)7892386d35715d14c469ec98b6deab037e2e2232 to < d6c4a5d2cc6ad695bdc89ce6ac028eac17484b9a (affected · git)7892386d35715d14c469ec98b6deab037e2e2232 to < 5d6f21538389fa2b9fa143afdebb4cbe170ec900 (affected · git)7892386d35715d14c469ec98b6deab037e2e2232 to < 0d0104adc2c8316433b660cdf6d182a09881864f (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.15 (affected)0 to < 5.15 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
7- https://git.kernel.org/stable/c/0d0104adc2c8316433b660cdf6d182a09881864f
- https://git.kernel.org/stable/c/29d93cc25328ec27d34098c722ef837778612dd7
- https://git.kernel.org/stable/c/512d832beec8d2487e058befb90258e2bce89319
- https://git.kernel.org/stable/c/5d6f21538389fa2b9fa143afdebb4cbe170ec900
- https://git.kernel.org/stable/c/635bacc0c05d369a0bea6855b354aa08cc0ab690
- https://git.kernel.org/stable/c/904e6876bb9924c8ce8eb83786c68e6404bdb042
- https://git.kernel.org/stable/c/d6c4a5d2cc6ad695bdc89ce6ac028eac17484b9a
Provider assertions
1Linux · cna
iomap: don't lose a fiemap iteration error when emitting the last extent
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- f2467a7589ab97792fabcb6f3cdbdfbd328450f1ce8818cad8d3166fa24411a3
- Ingested
- 30 Nov 2026, 13:30:06 UTC
- Source record
- Official CVE record