CVE-2025-39759: btrfs: qgroup: fix race between quota disable and quota rescan ioctl

Published Sep 11, 2025
·
Updated

btrfs: qgroup: fix race between quota disable and quota rescan ioctl

Affected Software

9 affected componentsFixes available
Linux Linux kernel
Microsoft azl3 kernel 6.6.96.2-2
Linux Linux kernel>=3.12<6.1.149
Linux Linux kernel>=6.2<6.6.103
Linux Linux kernel>=6.7<6.12.44
Linux Linux kernel>=6.13<6.15.11
Linux Linux kernel>=6.16<6.16.2
Debian Debian Linux=11.0
Microsoft azl3 kernel 6.6.96.2-2<6.6.104.2-1
6.6.104.2-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.6.104.2-1
  2. Configuration

    Fix the race by taking fs_info->qgroup_lock at btrfs_free_qgroup_config() so qgroup records are freed while holding fs_info->qgroup_lock (preventing use-after-free with concurrent quota rescan).

    Linux kernel (btrfs) Locking in btrfs_free_qgroup_config() = Take fs_info->qgroup_lock while freeing qgroup records in btrfs_free_qgroup_config()

Event History

Sep 11, 2025
CVE Published
via MITRE·04:52 PM
Data Sourced
via MITRE·04:52 PM
Description
Data Sourced
via NVD·05:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Sep 13, 2025
Data Sourced
via Microsoft·01:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-39759?

CVE-2025-39759 is classified as a medium severity vulnerability due to its potential for causing a use-after-free condition.

2

How do I fix CVE-2025-39759?

To fix CVE-2025-39759, update your Linux kernel to the latest stable release where the vulnerability has been addressed.

3

Which versions of the Linux kernel are affected by CVE-2025-39759?

CVE-2025-39759 affects versions of the Linux kernel prior to the patch that resolves the issue, so it is important to consult the latest updates.

4

What are the potential impacts of CVE-2025-39759?

The potential impact of CVE-2025-39759 includes system instability or crashes due to a race condition in the btrfs quota management.

5

Is CVE-2025-39759 specific to certain distributions of Linux?

CVE-2025-39759 is related to the Linux kernel itself and can affect any Linux distribution using the vulnerable kernel version.

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