Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

CVE-2024-26792
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2024-26792 is a double-free vulnerability discovered in the BTRFS filesystem component of the Linux kernel. The issue occurs during snapshot creation when there's a failure in committing the transaction, which can lead to a double free of an anonymous device. This vulnerability was disclosed on April 4, 2024, and affects multiple versions of the Linux kernel (NVD).

Technical details

The vulnerability stems from a race condition in the snapshot creation process where an anonymous device number may be freed twice. The issue occurs in the following sequence: 1) An anonymous device number is allocated and assigned to pending_snapshot->anon_dev in ioctl.c:create_snapshot(), 2) During btrfs_commit_transaction() execution, the code reaches transaction.c:create_pending_snapshot(), 3) The anonymous device number is freed when btrfs_get_new_fs_root() is called because btrfs_lookup_fs_root() returns an existing root, 4) If an error occurs in the transaction commit path, the same anonymous device number is freed again at the 'fail' label. The CVSS v3.1 base score for this vulnerability is 7.8 (HIGH) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H (NVD).

Impact

The double-free vulnerability can result in freeing an anonymous device number that may have been reallocated to another subsystem in the kernel or another BTRFS filesystem. This could potentially lead to system instability, denial of service, or possible arbitrary code execution (Kernel Patch).

Exploitability

The vulnerability requires local access with low privileges to exploit. It can be triggered during BTRFS snapshot creation operations when specific error conditions occur. The issue has been confirmed through testing with syzbot, which reported the vulnerability through a kernel warning message indicating an attempt to free an already freed anonymous device number (Kernel Patch).

Mitigation and workarounds

The vulnerability has been fixed in the Linux kernel through patches that modify the btrfs_get_root_ref() function and its callers to use a dev_t pointer argument for the anonymous device number. This ensures that when the number is freed, it's also reset to 0, preventing the double-free condition. The fix has been backported to multiple kernel versions including 5.10.210, 5.15.149, 6.1.79, 6.6.18, and 6.7.6 (NVD).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

linux

Fixed

bullseye

linux

Affected

sid

linux: 6.7.9-1

Fixed

trixie

linux: 6.7.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-90048CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-lowlatency
NoYesSep 16, 2026
CVE-2026-90042CRITICAL9.8
  • Linux Kernel logoLinux Kernel
  • linux-ibm
NoNoSep 16, 2026
CVE-2026-90049CRITICAL9.3
  • Linux Kernel logoLinux Kernel
  • linux-nvidia-7.0
NoYesSep 16, 2026
CVE-2026-90041HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-azure-nvidia
NoYesSep 16, 2026
CVE-2026-90039NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-hwe-6.14
NoNoSep 16, 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