Use After Free in Linux
CVE-2025-21879
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.
Vulnerability class: Use-After-Free
EPSS: 0.002 (9.6th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Linux — versions fef55c4d9c9c22264d2b2ceae1e26922cb6129a5, 1020443840569535f6025a855958f07ea3eebf71, 6.13
- Linux Linux_kernel — versions 6.14
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2025-21879?
- CVE-2025-21879 is a high-severity vulnerability in Linux, classified under Use After Free. CVSS score: 7.8/10. Published 2025-03-27.
- How severe is CVE-2025-21879?
- High severity. CVSS v3 base score is 7.8 out of 10.