We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2025-21879

btrfs: fix use-after-free on inode when scanning root during em shrinking



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.

Reserved 2024-12-29 | Published 2025-03-27 | Updated 2025-03-28 | Assigner Linux

Product status

Default status
unaffected

1020443840569535f6025a855958f07ea3eebf71 before 5e79d26014f9386387575b9ed60d342057cee49b
affected

1020443840569535f6025a855958f07ea3eebf71 before 59f37036bb7ab3d554c24abc856aabca01126414
affected

Default status
affected

6.13
affected

Any version before 6.13
unaffected

6.13.6
unaffected

6.14
unaffected

References

git.kernel.org/...c/5e79d26014f9386387575b9ed60d342057cee49b

git.kernel.org/...c/59f37036bb7ab3d554c24abc856aabca01126414

cve.org (CVE-2025-21879)

nvd.nist.gov (CVE-2025-21879)

Download JSON

Share this page
https://cve.threatint.eu/CVE/CVE-2025-21879

Support options

Helpdesk Chat, Email, Knowledgebase