Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138817

published

iomap: don't lose a fiemap iteration error when emitting the last extent

Published
30 Nov 2026, 13:25:15 UTC
Updated
30 Nov 2026, 13:25:15 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

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.

Affected vendor and product assertions
VendorProductVersion statusSource
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

0

No weakness assertions.

References

7

Provider assertions

1

Linux · 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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected