CVE-2024-57975: 
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability has been identified in the Linux kernel's BTRFS filesystem implementation, tracked as CVE-2024-57975. The issue relates to improper folio cleanup when run_delalloc_nocow() fails. This vulnerability was discovered through testing with CONFIG_DEBUG_VM set, where test case generic/476 demonstrated a potential kernel crash due to a VM_BUG_ON_FOLIO assertion (Kernel Git).

Technical details

The vulnerability manifests when handling dirty page ranges in the BTRFS filesystem, specifically during the NOCOW (No Copy On Write) operation. The bug occurs in scenarios involving 4K block size and 4K page size configurations. When run_delalloc_nocow() fails, the error handling path doesn't properly clean up folio (page) states, leading to an attempt to mark writeback on unlocked pages. This triggers a VM_BUG_ON_FOLIO assertion, causing a kernel crash (NVD).

Impact

When triggered, this vulnerability can cause a kernel crash on systems using the BTRFS filesystem with specific configurations. The issue particularly affects systems with CONFIG_DEBUG_VM enabled and can lead to system instability during file operations that involve NOCOW writes (Kernel Git).

Exploitability

The vulnerability requires specific conditions to be triggered, including the use of BTRFS filesystem and particular file operations involving NOCOW writes. It appears to be primarily a stability issue rather than a security vulnerability, as it requires legitimate filesystem operations to manifest (NVD).

Mitigation and workarounds

The issue has been resolved in the Linux kernel through a patch that implements proper folio cleanup. The fix includes introducing a cleanup_dirty_folios() helper function to handle dirty folio cleanup, adding proper handling for clearing folio dirty flags, and implementing correct tracking of failed COW range ends (Kernel Git).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Affected

bullseye

linux

Affected

sid

linux: 6.12.13-1

Fixed

trixie

linux: 6.12.13-1

Fixed

Source: This 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-100075CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • kernel-rt-64k-debug-modules-internal
NoYesSep 25, 2026
CVE-2026-98164MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • kernel-rt-selftests-internal
NoYesSep 29, 2026
CVE-2026-98161MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-gkeop
NoYesSep 25, 2026
CVE-2026-100079MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-lowlatency-hwe-6.8
NoYesSep 25, 2026
CVE-2026-100074MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.14
NoYesSep 25, 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