CVE-2025-21879
kernel: btrfs: fix use-after-free on inode when scanning root during em shrinking
Severity
ImportantRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · March 27, 2025
Updated · September 13, 2026
Description
A flaw was found in the btrfs file system component of the Linux kernel. A local attacker with low privileges could exploit a use-after-free vulnerability during the scanning of the root inode while shrinking the extent tree. This flaw could lead to a system crash, denial of service, or potentially arbitrary code execution or privilege escalation.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
No mitigation is specified in collected source.
CVSS / CWE
CVSS 3.1 · 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CWE-416 · Use After Free