Cloudanix VulnDB

CVE-2025-39884

None

CVSS

—

EPSS

0.1%

Published

Sep 23, 2025

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A timing flaw in Linux storage handling can freeze the system when certain folders are being removed.

Exploitation
Local Privilege
Attacker needs
Local User
Complexity
Moderate
Impact
Denial Of Service
Component
OS kernel
Class
Race Condition
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Race condition in btrfs inode eviction and caching allows a live btrfs_inode to be removed from root->inodes xarray via __xa_erase after a concurrent btrfs_iget recreates it, leading to premature btrfs_add_dead_root calls and infinite loops in btrfs_kill_all_delayed_nodes during subvolume deletion.

Why it matters to the business

Systems using btrfs subvolumes may experience soft lockups and unresponsiveness during normal volume deletion operations, disrupting storage management and requiring reboots or memory pressure to recover.

How an attack unfolds

An attacker with local access performs concurrent file operations that trigger inode eviction while btrfs_iget is called for the same inode; once the xarray entry is lost, triggering subvolume deletion causes the delayed_nodes xarray to never empty, resulting in a live lock.

How to fix it

Update the Linux kernel to a version containing commit 9ba898c9fcbe6ebb88bcd4df8aab0f90090d202e or later; apply the __xa_cmpxchg fix in btrfs_del_inode_from_root.

How to confirm the fix worked

Confirm kernel version includes the referenced commit; reproduce subvolume deletion under inode eviction load and verify no soft lockups occur.

Typical attack path

  1. Obtain local unprivileged access on a btrfs filesystem
  2. Trigger inode eviction via remove_inode_hash while btrfs_iget_path runs
  3. Initiate subvolume deletion that reaches btrfs_clean_one_deleted_snapshot
  4. Observe soft lockup in btrfs_kill_all_delayed_nodes

How to detect it

Review kernel logs for soft lockup traces mentioning btrfs_kill_all_delayed_nodes or btrfs_clean_one_deleted_snapshot; correlate with subvolume deletion activity.

What your security team should do

  • Prioritize kernel upgrades on all btrfs-using systems within maintenance windows
  • Monitor for soft lockup reports in dmesg related to btrfs delayed nodes
  • Test subvolume deletion workloads after patching

The record

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix subvolume deletion lockup caused by inodes xarray race There is a race condition between inode eviction and inode caching that can cause a live struct btrfs_inode to be missing from the root->inodes xarray. Specifically, there is a window during evict() between the inode being unhashed and deleted from the xarray. If btrfs_iget() is called for the same inode in that window, it will be recreated and inserted into the xarray, but then eviction will delete the new entry, leaving nothing in the xarray: Thread 1 Thread 2 --------------------------------------------------------------- evict() remove_inode_hash() btrfs_iget_path() btrfs_iget_locked() btrfs_read_locked_inode() btrfs_add_inode_to_root() destroy_inode() btrfs_destroy_inode() btrfs_del_inode_from_root() __xa_erase In turn, this can cause issues for subvolume deletion. Specifically, if an inode is in this lost state, and all other inodes are evicted, then btrfs_del_inode_from_root() will call btrfs_add_dead_root() prematurely. If the lost inode has a delayed_node attached to it, then when btrfs_clean_one_deleted_snapshot() calls btrfs_kill_all_delayed_nodes(), it will loop forever because the delayed_nodes xarray will never become empty (unless memory pressure forces the inode out). We saw this manifest as soft lockups in production. Fix it by only deleting the xarray entry if it matches the given inode (using __xa_cmpxchg()).

Affected packages

Ecosystem Package Introduced Fixed
Debian:13 linux 0 6.12.48-1
Debian:14 linux 0 No fix
Linux Kernel 6.11.0 6.12.48
openSUSE:Leap 16.0 dtb-aarch64 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-64kb 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-default 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-default-base 0 6.12.0-160000.6.1.160000.2.4
openSUSE:Leap 16.0 kernel-docs 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-kvmsmall 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-obs-build 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-obs-qa 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-rt 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-source 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-syms 0 6.12.0-160000.6.1
openSUSE:Leap 16.0 kernel-zfcpdump 0 6.12.0-160000.6.1

Related vulnerabilities