System crash via unlocked qgroup teardown race
Published Sep 11, 2025 · Updated May 12, 2026
Use-after-free in btrfs qgroup code in Linux and SIMATIC CN 4100 before 5.0 allows local users to crash the affected system. btrfs_free_qgroup_config frees records from fs_info->qgroup_tree without qgroup_lock while qgroup_rescan_zero_tracking traverses that tree under the lock. Triggering the race requires local low-privileged access, enabled btrfs quotas, and concurrent quota-disable and rescan operations; the documented consequence on CN 4100 is loss of availability.
Summary
What happened
Use-after-free in btrfs qgroup code in Linux and SIMATIC CN 4100 before 5.0 allows local users to crash the affected system. btrfs_free_qgroup_config frees records from fs_info->qgroup_tree without qgroup_lock while qgroup_rescan_zero_tracking traverses that tree under the lock. Triggering the race requires local low-privileged access, enabled btrfs quotas, and concurrent quota-disable and rescan operations; the documented consequence on CN 4100 is loss of availability.
The record
- CVE
- CVE-2025-39759
- Published
- Sep 11, 2025
- Updated
- May 12, 2026
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-20, T1499.004
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 11, 2025CVE publishedPublication date reported by the CVE source.
- May 12, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=3.12
- Affected versionversion=e685da14af6b31e4b336a110cb1bae1afc268be8 <2fd0f5ceb997f90f4332ccbab6c7e907e6b2d0eb
- Affected versionversion=e685da14af6b31e4b336a110cb1bae1afc268be8 <7cda0fdde5d9890976861421d207870500f9aace
- Affected versionversion=e685da14af6b31e4b336a110cb1bae1afc268be8 <b172535ccba12f0cf7d23b3b840989de47fc104d
- Affected versionversion=e685da14af6b31e4b336a110cb1bae1afc268be8 <c38028ce0d0045ca600b6a8345a0ff92bfb47b66
- Affected versionversion=e685da14af6b31e4b336a110cb1bae1afc268be8 <dd0b28d877b293b1d7f8727a7de08ae36b6b9ef0
- Affected versionversion=e685da14af6b31e4b336a110cb1bae1afc268be8 <e1249667750399a48cafcf5945761d39fa584edf
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo