CVE-2024-41078
Last modified
CVE-2024-41078 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. 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.. EPSS estimates a 0.22% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | < 5.10.223 | — |
| Linux | Linux Kernel | >= 5.11, < 5.15.164 | — |
| Linux | Linux Kernel | >= 5.16, < 6.1.101 | — |
| Linux | Linux Kernel | >= 6.2, < 6.6.42 | — |
| Linux | Linux Kernel | >= 6.7, < 6.9.11 | — |
| Linux | Linux Kernel | 6.10 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-41078?
How severe is CVE-2024-41078?
How do I fix CVE-2024-41078?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-41072In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-41073In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-41074In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-41075In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-41076In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-41077In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-41079In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-4108Rejected reason: This CVE ID has been rejected or withdrawn …
- CVE-2024-41080In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-41081In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-41082In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-41083In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-41078?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
