CVE-2025-21879 Details
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.
A use-after-free vulnerability has been identified in the Btrfs file system implementation of the Linux kernel. The issue arises when the kernel scans a root during the process of shrinking, accessing the inode's root and file system information after scheduling the inode for a delayed release. This can lead to a use-after-free condition if the cleaner kernel thread releases the inode before it is properly dereferenced, potentially allowing for memory corruption or exploitation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Mar 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/07836bc18f4ae42da4e922244f4685561c18755e | kernel.org | |
| https://git.kernel.org/stable/c/59f37036bb7ab3d554c24abc856aabca01126414 | kernel.org | Patch |
| https://git.kernel.org/stable/c/5e79d26014f9386387575b9ed60d342057cee49b | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-416 | Use After Free | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.13, < 6.13.6 6.14 rc1 6.14 rc2 6.14 rc3 6.14 rc4 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jul 6, 2025 | CVE Modified | kernel.org |
| Apr 1, 2025 | Initial Analysis | [email protected] |
| Mar 28, 2025 | CVE Modified | CISA-ADP |
| Mar 27, 2025 | New CVE Received | kernel.org |