CVE-2024-26794
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-26794 is a vulnerability in the Linux kernel's btrfs file system that involves a race condition between ordered extent completion and fiemap operation. The issue was discovered in early 2024 and affects the btrfs file system implementation. The vulnerability occurs when fiemap is called without FIEMAP_FLAG_SYNC and there are ordered extents completing while btrfs_next_leaf() is called (Kernel Git).

Technical details

The vulnerability stems from a race condition that occurs when the target extent range is not locked for the whole duration of the fiemap call. This was initially done to avoid a deadlock in scenarios where the fiemap buffer is a memory-mapped range of the same file. The race condition manifests when a fiemap task processes a file extent item covering a specific range (e.g., [512K, 1M[) and an ordered extent completes for an overlapping range (e.g., [768K, 2M[]), resulting in the original extent being trimmed and a new extent being inserted. This can trigger a warning in emit_fiemap_extent() and cause fiemap to fail with -EINVAL (Kernel Git).

Impact

The vulnerability can cause the fiemap operation to fail with -EINVAL and trigger kernel warnings. While the use case that could trigger this issue is unlikely in practice, it can be triggered through fuzz testing. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) by CISA-ADP (NVD).

Exploitability

The vulnerability can be triggered when specific conditions are met, particularly during fuzz testing scenarios. While it represents a reliability issue, there is no indication of this vulnerability being actively exploited in the wild (Kernel Git).

Mitigation and workarounds

The issue has been fixed in the Linux kernel through a patch that modifies the emit_fiemap_extent() function to handle three specific scenarios: adjusting the length of previously cached extents to prevent overlap, handling cases where file extent items match cached offsets, and managing situations where file extent items have smaller offsets than cached ones (Kernel Git).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-68480NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-devel-matched
NoYesAug 06, 2026
CVE-2026-64582NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-zfcpdump-modules-extra
NoYesAug 05, 2026
CVE-2026-64579NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-modules-internal
NoYesAug 05, 2026
CVE-2026-64576NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt
NoYesAug 05, 2026
CVE-2026-64575NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-6.17
NoYesAug 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management