CVE-2025-22115: btrfs: fix block group refcount race in btrfs_create_pending_block_groups()

Published Apr 16, 2025
·
Updated

btrfs: fix block group refcount race in btrfscreatependingblockgroups()

Affected Software

11 affected components
Linux Kernel
Linux Linux kernel>=6.1.47<6.2
Linux Linux kernel>=6.4.12<6.5
Linux Linux kernel>=6.5.1<6.12.40
Linux Linux kernel>=6.13<6.14.2
Linux Linux kernel=6.5
Linux Linux kernel=6.5-rc3
Linux Linux kernel=6.5-rc4
Linux Linux kernel=6.5-rc5
Linux Linux kernel=6.5-rc6
Linux Linux kernel=6.5-rc7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. 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()
  2. 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

Apr 16, 2025
CVE Published
via MITRE·02:13 PM
Data Sourced
via MITRE·02:13 PM
DescriptionSeverity
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 4, 2025
Data Sourced
via Microsoft·12:35 AM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What is the severity of CVE-2025-22115?

CVE-2025-22115 has been classified as a moderate severity vulnerability affecting the Linux kernel.

2

How do I fix CVE-2025-22115?

To fix CVE-2025-22115, update your Linux kernel to version 6.14.0-rc5 or later.

3

What does CVE-2025-22115 impact?

CVE-2025-22115 specifically impacts the Btrfs file system in the Linux kernel.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203