CVE-2026-138817

Not scored yetLast modified Nov 30, 2026

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.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138818In the Linux kernel, the following vulnerability has been resolved: misc: tifm: don't clear dev->driver in tifm_device_remove() tifm_devicCVE-2026-138819In the Linux kernel, the following vulnerability has been resolved: serial: 8250_exar: store the GPIO platform device in struct exar8250 TCVE-2026-138829.6Race in USB in Google Chrome prior to 150.0.7871.47 allowed a remote attacker who had compromised the renderer process to potentially perforCVE-2026-138820In the Linux kernel, the following vulnerability has been resolved: arm64/mm: Treat faults taken by EFI runtime firmware as kernel faults CVE-2026-1388217.0In the Linux kernel, the following vulnerability has been resolved: fbdev: sh_mobile_lcdc: check for fb_deferred_io_init() error fb_deferrCVE-2026-138822In the Linux kernel, the following vulnerability has been resolved: fbdev: smscufx: check for fb_deferred_io_init() error fb_deferred_io_iCVE-2026-138823In the Linux kernel, the following vulnerability has been resolved: fbdev: udlfb: check for fb_deferred_io_init() error fb_deferred_io_iniCVE-2026-138824In the Linux kernel, the following vulnerability has been resolved: fbdev: xen-fbfront: check for fb_deferred_io_init() error fb_deferred_CVE-2026-138825In the Linux kernel, the following vulnerability has been resolved: fbdev: core: Initialize modelist in framebuffer_alloc() framebuffer_alCVE-2026-138826In the Linux kernel, the following vulnerability has been resolved: fbdev: sh_mobile_lcdcfb: Restore the per-overlay sysfs attributes The CVE-2026-138827In the Linux kernel, the following vulnerability has been resolved: platform/x86/amd: hfi: Fix out-of-bounds reads when parsing ranking datCVE-2026-138828In the Linux kernel, the following vulnerability has been resolved: platform/x86: asus-wmi: Serialize WMI method evaluations with a mutex
CVE-2026-138817: Unscored | Vulnix