CVE-2025-39884
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2025-39884 is a vulnerability discovered in the Linux kernel affecting the btrfs filesystem. The issue was disclosed on September 23, 2025, and involves 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 (NVD CVE).

Technical details

The vulnerability stems from a race condition that occurs during inode management in the btrfs filesystem. Specifically, there is a window during evict() between the inode being unhashed and deleted from the xarray. If btrfsiget() 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. This can lead to issues with subvolume deletion, particularly when an inode is in a lost state and all other inodes are evicted, causing btrfsdelinodefromroot() to call btrfsadddeadroot() prematurely (NVD CVE).

Impact

The vulnerability manifests as soft lockups in production environments. If a lost inode has a delayednode attached to it, when btrfscleanonedeletedsnapshot() calls btrfskillalldelayednodes(), it will loop forever because the delayednodes xarray will never become empty, unless memory pressure forces the inode out (NVD CVE).

Mitigation and workarounds

The issue has been fixed by modifying the code to only delete the xarray entry if it matches the given inode using _xacmpxchg(). Various Linux distributions have released patches, with Debian providing fixes in versions 6.12.48-1 for trixie and 6.16.8-1 for sid (Debian 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-39888N/AN/A
  • Linux KernelLinux Kernel
  • kernel-kdump
NoNoSep 23, 2025
CVE-2025-39887N/AN/A
  • Linux KernelLinux Kernel
  • kernel-abi-stablelists
NoNoSep 23, 2025
CVE-2025-39886N/AN/A
  • Linux KernelLinux Kernel
  • kernel-tools
NoYesSep 23, 2025
CVE-2025-39884N/AN/A
  • Linux KernelLinux Kernel
  • python-perf
NoYesSep 23, 2025
CVE-2025-39883N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-modules
NoYesSep 23, 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