CVE-2025-39759
BaseFortify
Publication date: 2025-09-11
Last updated on: 2025-11-03
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | 6.1.153 |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-UNKNOWN |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is a race condition in the Linux kernel's btrfs filesystem quota management. It occurs when one task disables quotas while another task is running a quota rescan ioctl. Due to improper locking, this can lead to a use-after-free situation where quota group records are freed while still being accessed, potentially causing system instability or crashes. The issue arises because one task frees quota group data without holding the necessary lock, while another task simultaneously iterates over that data holding the lock.
How can this vulnerability impact me? :
This vulnerability can lead to use-after-free conditions in the kernel, which may cause system crashes, data corruption, or potential escalation of privileges if exploited. It affects the stability and reliability of systems using the btrfs filesystem with quota management enabled, potentially impacting system availability and data integrity.
What immediate steps should I take to mitigate this vulnerability?
To mitigate this vulnerability, update the Linux kernel to a version where the race condition between quota disable and quota rescan ioctl in btrfs has been fixed. The fix involves proper locking in btrfs_free_qgroup_config() and preventing the rescan worker from starting if quotas are disabled. Until the update is applied, avoid running quota disable and quota rescan ioctl operations concurrently on btrfs filesystems.