CVE-2025-21879

HIGH

Linux Kernel 6.13-6.13.5 - Use-After-Free in Btrfs Root Scanning

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 7.8
EPSS 0.0018
EPSS Percentile 7.5%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact total

Details

CWE
CWE-416
Status published
Products (10)
linux/Kernel 6.13.0 - 6.13.6linux
Linux/Linux < 6.13
Linux/Linux 1020443840569535f6025a855958f07ea3eebf71 - 59f37036bb7ab3d554c24abc856aabca01126414
Linux/Linux 1020443840569535f6025a855958f07ea3eebf71 - 5e79d26014f9386387575b9ed60d342057cee49b
Linux/Linux 6.13
Linux/Linux 6.13.6 - 6.13.*
Linux/Linux 6.14
Linux/Linux fef55c4d9c9c22264d2b2ceae1e26922cb6129a5 - 07836bc18f4ae42da4e922244f4685561c18755e
linux/linux_kernel 6.14 rc1 (4 CPE variants)
linux/linux_kernel 6.13 - 6.13.6
Published Mar 27, 2025
Tracked Since Feb 18, 2026