CVE-2024-35949
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's BTRFS filesystem has been identified as CVE-2024-35949. The issue involves improper validation of the WRITTEN flag on metadata blocks in BTRFS, which could lead to potential security risks. The vulnerability was discovered in May 2024 and affects the BTRFS filesystem implementation in the Linux kernel (Kernel Git).

Technical details

The vulnerability stems from the way BTRFS handles leaf checks in relation to the WRITTEN flag on metadata blocks. Previously, btrfs_check_leaf() would only run extended leaf checks if the WRITTEN flag was set on header flags. After the removal of CONFIG_BTRFS_FS_CHECK_INTEGRITY option, there was a gap in checking that could allow corrupted blocks without the WRITTEN flag to bypass important validation steps. This could lead to accessing memory outside of the extent buffer when processing item pointers (Kernel Git).

Impact

When exploited, this vulnerability could lead to out-of-bounds memory access through the extent buffer accessors. This was demonstrated through a crafted image that manipulated the WRITTEN bit, resulting in KASAN reporting out-of-bound access and general protection faults in the system (Kernel Git).

Mitigation and workarounds

The issue has been patched by adding checks to ensure the WRITTEN flag is set appropriately and making __btrfs_check_leaf() always perform item checking. This fix has been incorporated into various Linux distributions, including Fedora 40 with kernel version 6.8.10-300.fc40 (Fedora Update).

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-64564NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel6.12
NoYesAug 04, 2026
CVE-2026-64563NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-5.4
NoYesAug 04, 2026
CVE-2026-64562NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-gcp-5.15
NoYesAug 04, 2026
CVE-2026-64561NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-6.17
NoYesAug 04, 2026
CVE-2022-4994NONEN/A
  • Linux Kernel logoLinux Kernel
  • kernel-rt-debug-modules
NoYesJul 30, 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