CVE-2025-22115
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-22115 is a vulnerability discovered in the Linux kernel's BTRFS filesystem implementation, specifically related to a block group refcount race condition in the btrfs_create_pending_block_groups() function. The vulnerability was disclosed on April 16, 2025, affecting systems using the BTRFS filesystem (NVD, RedHat).

Technical details

The vulnerability stems from a race condition in the two-phase block group creation process. The issue occurs when a block group can be allocated/deallocated after btrfs_make_block_group() adds it to the space_info with btrfs_add_bg_to_space_info(), but before creation is completed in btrfs_create_pending_block_groups(). This can lead to concurrent execution of btrfs_mark_bg_unused and btrfs_create_pending_block_groups, resulting in broken reference counts and invalid new_bgs state for transaction cleanup. The vulnerability has been assigned a CVSS v3.1 score of 5.5 (AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) (RedHat).

Impact

The vulnerability can result in reference count underflow and use-after-free conditions in the Linux kernel's BTRFS filesystem. This primarily manifests as system warnings and potential filesystem integrity issues, particularly after relocation operations that cancel discard and tear down block groups (NVD).

Exploitability

The vulnerability requires local access and can be triggered through filesystem operations involving BTRFS block group management. It is most likely to occur after a relocation operation finishes which cancels discard and tears down block groups (RedHat).

Mitigation and workarounds

The vulnerability has been resolved in various Linux distributions. Debian has marked this as fixed in bullseye version 5.10.234-1, while it remains vulnerable in bookworm and trixie releases. The fix involves properly handling the lock mechanism around block group operations (Debian).

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-2026-68454HIGH8.8
  • Linux Kernel logoLinux Kernel
  • linux-xilinx-zynqmp
NoYesAug 13, 2026
CVE-2026-68452HIGH7.8
  • Linux Kernel logoLinux Kernel
  • kernel-zfcpdump-modules-core
NoYesAug 13, 2026
CVE-2026-68451HIGH7.8
  • Linux Kernel logoLinux Kernel
  • linux-aws
NoYesAug 13, 2026
CVE-2026-68453HIGH7.1
  • Linux Kernel logoLinux Kernel
  • kernel-64k-debug-modules-partner
NoYesAug 13, 2026
CVE-2026-68450NONEN/A
  • Linux Kernel logoLinux Kernel
  • linux-aws-fips
NoYesAug 12, 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