CVE-2024-40962
Linux Kernel vulnerability analysis and mitigation

Overview

A NULL pointer dereference vulnerability was discovered in the Linux kernel's BTRFS filesystem when handling zoned NODATASUM writes. The vulnerability (CVE-2024-40962) affects Linux kernel versions from 6.5 up to 6.6.36, versions from 6.7 up to 6.9.7, and Linux kernel 6.10 release candidates (rc1 through rc4). The issue was discovered when running fstests' test-case btrfs/167 on emulated zoned devices (Kernel Git).

Technical details

The vulnerability occurs in the 'btrfszonefinishendio()' function when handling NOCOW (No Copy On Write) writes on zoned devices. The issue manifests as a NULL pointer dereference in the range [0x0000000000000088-0x000000000000008f] due to missing checksums list on the orderedextent. The problem arises because dummy checksums are only attached during zone-append writes, but not during NOCOW zoned data writes on conventional zones. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (NVD).

Impact

When exploited, this vulnerability can cause a denial of service condition through a system crash. The issue specifically affects systems using the BTRFS filesystem with zoned storage devices, particularly when performing NOCOW writes in zoned emulation mode (Kernel Git).

Mitigation and workarounds

The vulnerability has been fixed by modifying the BTRFS code to attach dummy checksums for NOCOW zoned data writes on conventional zones. The fix has been implemented in the Linux kernel through patches that modify the fs/btrfs/bio.c file. Users should update to patched kernel versions when available (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-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-gcp-5.4
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-gcp-6.8
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-modules-extra
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesNov 24, 2025

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