CVE-2025-21879
Severity CVSS v4.0:
Pending analysis
Type:
CWE-416
Use After Free
Publication date:
27/03/2025
Last modified:
06/07/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
btrfs: fix use-after-free on inode when scanning root during em shrinking<br />
<br />
At btrfs_scan_root() we are accessing the inode&#39;s root (and fs_info) in a<br />
call to btrfs_fs_closing() after we have scheduled the inode for a delayed<br />
iput, and that can result in a use-after-free on the inode in case the<br />
cleaner kthread does the iput before we dereference the inode in the call<br />
to btrfs_fs_closing().<br />
<br />
Fix this by using the fs_info stored already in a local variable instead<br />
of doing inode->root->fs_info.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
Vulnerable products and versions
CPE | From | Up to |
---|---|---|
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.13 (including) | 6.13.6 (excluding) |
cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:* | ||
cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:* | ||
cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:* | ||
cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page