CVE-2024-41078
btrfs: qgroup: fix quota root leak after quota disable failure
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= bed92eae26ccf280d1a2168b7509447b56675a27, < 94818bdb00ef34a996a06aa63d11f591074cb757; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 8a69529f22590b67bb018de9acbcf94abc8603cf; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51; >= bed92eae26ccf280d1a2168b7509447b56675a27, < f88aeff5a173e8ba3133314eb4b964236ef3589d; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 7dd6a5b96157a21245566b21fd58276a214357ff; >= bed92eae26ccf280d1a2168b7509447b56675a27, < a7e4c6a3031c74078dba7fa36239d0f4fe476c53
- Anyone running Linux 3.6
Vulnerability facts
- Affected
- Linux >= bed92eae26ccf280d1a2168b7509447b56675a27, < 94818bdb00ef34a996a06aa63d11f591074cb757; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 8a69529f22590b67bb018de9acbcf94abc8603cf; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51; >= bed92eae26ccf280d1a2168b7509447b56675a27, < f88aeff5a173e8ba3133314eb4b964236ef3589d; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 7dd6a5b96157a21245566b21fd58276a214357ff; >= bed92eae26ccf280d1a2168b7509447b56675a27, < a7e4c6a3031c74078dba7fa36239d0f4fe476c53; Linux 3.6
- Fixed in
- Linux 94818bdb00ef34a996a06aa63d11f591074cb757, Linux 8a69529f22590b67bb018de9acbcf94abc8603cf, Linux 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51, Linux 7dd6a5b96157a21245566b21fd58276a214357ff
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- CWE
- CWE-401
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: qgroup: fix quota root leak after quota disable failure If during the quota disable we fail when cleaning the quota tree or when deleting the root from the root tree, we jump to the 'out' label without ever dropping the reference on the quota root, resulting in a leak of the root since fs_info->quota_root is no longer pointing to the root (we have set it to NULL just before those steps). Fix this by always doing a btrfs_put_root() call under the 'out' label. This is a problem that exists since qgroups were first added in 2012 by commit bed92eae26cc ("Btrfs: qgroup implementation and prototypes"), but back then we missed a kfree on the quota root and free_extent_buffer() calls on its root and commit root nodes, since back then roots were not yet reference counted.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= bed92eae26ccf280d1a2168b7509447b56675a27, < 94818bdb00ef34a996a06aa63d11f591074cb757; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 8a69529f22590b67bb018de9acbcf94abc8603cf; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51; >= bed92eae26ccf280d1a2168b7509447b56675a27, < f88aeff5a173e8ba3133314eb4b964236ef3589d; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 7dd6a5b96157a21245566b21fd58276a214357ff; >= bed92eae26ccf280d1a2168b7509447b56675a27, < a7e4c6a3031c74078dba7fa36239d0f4fe476c53 | — | cvelist |
| Linux | 3.6 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-41078. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-41078.md Affected: Linux >= bed92eae26ccf280d1a2168b7509447b56675a27, < 94818bdb00ef34a996a06aa63d11f591074cb757; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 8a69529f22590b67bb018de9acbcf94abc8603cf; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51; >= bed92eae26ccf280d1a2168… Fixed in: Linux 94818bdb00ef34a996a06aa63d11f591074cb757, Linux 8a69529f22590b67bb018de9acbcf94abc8603cf, Linux 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51, Linux 7dd6a5b96157a21245566b21fd58276a214357ff Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757
- https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cf
- https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51
- https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589d
- https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ff
- https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53
FAQ
Is CVE-2024-41078 being exploited?
There is no confirmed exploitation: CVE-2024-41078 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-41078?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2024-41078?
Linux >= bed92eae26ccf280d1a2168b7509447b56675a27, < 94818bdb00ef34a996a06aa63d11f591074cb757; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 8a69529f22590b67bb018de9acbcf94abc8603cf; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51; >= bed92eae26ccf280d1a2168b7509447b56675a27, < f88aeff5a173e8ba3133314eb4b964236ef3589d; >= bed92eae26ccf280d1a2168b7509447b56675a27, < 7dd6a5b96157a21245566b21fd58276a214357ff; >= bed92eae26ccf280d1a2168b7509447b56675a27, < a7e4c6a3031c74078dba7fa36239d0f4fe476c53; Linux 3.6.
Is there a fix for CVE-2024-41078?
Yes. Fixed in Linux 94818bdb00ef34a996a06aa63d11f591074cb757, Linux 8a69529f22590b67bb018de9acbcf94abc8603cf, Linux 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51, Linux 7dd6a5b96157a21245566b21fd58276a214357ff. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2024-41078?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.