CVE-2025-21879

High

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix use-after-free on inode when scanning root during em shrinking At btrfs_scan_root() we are accessing the inode's root (and fs_info) in a call to btrfs_fs_closing() after we have scheduled the inode for a delayed iput, and that can result in a use-after-free on the inode in case the cleaner kthread does the iput before we dereference the inode in the call to btrfs_fs_closing(). Fix this by using the fs_info stored already in a local variable instead of doing inode->root->fs_info.

SeverityHigh
CVSS7.8
Exploit probability—
ProductLinux Kernel
PublishedMar 27, 2025
First seenMar 27, 2025

How to fix

Update
  • linux linux_kernel6.13.6 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel6.13 ≤ v < 6.13.6, 6.146.13.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.