CVE-2024-35956
Linux Kernel vulnerability analysis and mitigation

Overview

A vulnerability in the Linux kernel's BTRFS filesystem has been identified as CVE-2024-35956. The issue affects the quota groups (squota or qgroups) functionality when performing subvolume operations. The vulnerability was discovered in May 2024 and affects the BTRFS filesystem implementation in the Linux kernel (NVD).

Technical details

The vulnerability occurs in the handling of qgroup PREALLOC reservations during subvolume operations (create subvolume, create snapshot, and delete subvolume). When quota groups are enabled, these operations reserve qgroup metadata of type PREALLOC, which should be converted to PERTRANS once associated with a transaction. However, the error paths were incorrectly implementing this lifecycle, unconditionally converting PREALLOC to PERTRANS regardless of errors or transaction association status. This resulted in occasional leaks of PERTRANS reservations when record_root_in_trans was not called successfully (Kernel Commit).

Impact

The vulnerability leads to memory leaks in the BTRFS filesystem when performing subvolume operations with quota groups enabled. In debug builds (CONFIG_BTRFS_DEBUG), this manifests as a WARN at unmount due to leaked reservations. The issue primarily affects system stability and resource management (Kernel Commit).

Exploitability

The vulnerability requires local access to a system running BTRFS with quota groups enabled. It is triggered during specific filesystem operations (subvolume creation, snapshot creation, or deletion). Testing showed the issue would manifest in approximately 5-10 runs under specific conditions (Kernel Commit).

Mitigation and workarounds

A fix has been implemented that ensures proper handling of qgroup PREALLOC reservations by enforcing two key properties: 1) any failure before record_root_in_trans is called successfully results in freeing the PREALLOC reservation, and 2) after record_root_in_trans, conversion to PERTRANS occurs with transaction ownership of freeing the reservation. The fix has been extensively tested, with 1000 successful consecutive runs reported (Kernel Commit).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux: 6.1.123-1

Fixed

bullseye

linux-6.1: 6.1.128-1~deb11u1

Fixed

sid

linux: 6.8.9-1

Fixed

trixie

linux: 6.8.9-1

Fixed

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-80904MEDIUM5.9
  • Linux Kernel logoLinux Kernel
  • linux-aws-6.14
NoYesSep 04, 2026
CVE-2026-80905MEDIUM5.5
  • Linux Kernel logoLinux Kernel
  • linux-gkeop
NoYesSep 04, 2026
CVE-2026-80913MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-ibm-5.4
NoYesSep 04, 2026
CVE-2026-80912MEDIUM4.4
  • Linux Kernel logoLinux Kernel
  • linux-oem-6.14
NoYesSep 04, 2026
CVE-2026-80906NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-azure-nvidia-6.14
NoYesSep 04, 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