CVE-2024-46733
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-46733 is a vulnerability in the Linux kernel's BTRFS file system that involves qgroup reserve leaks in the cowfilerange functionality. The issue was discovered and resolved in September 2024, affecting the buffered write path where the dirty page owns the qgroup reserve until it creates an ordered_extent (Kernel Git).

Technical details

In the buffered write path, any errors occurring before the orderedextent creation must free the reservation, or the space becomes leaked. The issue manifests when errors in cowfile_range prevent ordered extent allocation. Because delalloc is cleared, the inode is removed from the delalloc list, preventing invalidate/launder calls on inodes/pages during the commit abort path (Kernel Git).

Impact

The vulnerability leads to qgroup reserve leaks, resulting in unreleased space in the BTRFS file system. This manifests as errors during system unmount, with warnings about unreleased space and IO failures. The issue can cause system warnings and potential resource management problems (Kernel Git).

Mitigation and workarounds

The issue has been fixed by adding proper cleanup of qgroup reservations in error paths. The fix involves calling btrfsqgroupfreedata in three specific locations within the cowfile_range function to ensure proper resource cleanup when errors occur (Kernel Git, Ubuntu Security).

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-40343MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-riscv
NoYesDec 09, 2025
CVE-2025-40342MEDIUM6.4
  • Linux KernelLinux Kernel
  • linux-azure-5.4
NoYesDec 09, 2025
CVE-2025-40341MEDIUM5.1
  • Linux KernelLinux Kernel
  • kernel-debug-uki-virt-addons
NoYesDec 09, 2025
CVE-2025-40345N/AN/A
  • Linux KernelLinux Kernel
  • bpftool
NoYesDec 12, 2025
CVE-2025-40344N/AN/A
  • Linux KernelLinux Kernel
  • rtla
NoYesDec 09, 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