CVE-2025-22115: btrfs: fix block group refcount race in btrfs_create_pending_block_groups()
btrfs: fix block group refcount race in btrfscreatependingblockgroups()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch btrfs: fix block group refcount race in btrfs_create_pending_block_groups() - Compensating control
Apply the kernel fix that resolves the btrfs block group refcount race; until then, avoid triggering the affected btrfs discard/relocation paths that can lead to refcount_t underflow/use-after-free warnings (e.g., the async discard workqueue shown: btrfs_discard_workfn / Workqueue: btrfs_discard).
Event History
Frequently Asked Questions
What is the severity of CVE-2025-22115?
CVE-2025-22115 has been classified as a moderate severity vulnerability affecting the Linux kernel.
How do I fix CVE-2025-22115?
To fix CVE-2025-22115, update your Linux kernel to version 6.14.0-rc5 or later.
What does CVE-2025-22115 impact?
CVE-2025-22115 specifically impacts the Btrfs file system in the Linux kernel.
What is the nature of the vulnerability in CVE-2025-22115?
CVE-2025-22115 involves a race condition in the reference counting of block group creation in Btrfs.
Is CVE-2025-22115 present in earlier versions of the Linux kernel?
Yes, CVE-2025-22115 affects Linux kernel versions prior to 6.14.0-rc5.