Logo
-

Byte Open Security

(ByteOS Network)

Log In

Sign Up

ByteOS

Security
Vulnerability Details
Registries
Custom Views
Weaknesses
Attack Patterns
Filters & Tools
Vulnerability Details :

CVE-2024-41078

Summary
Assigner-Linux
Assigner Org ID-416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published At-29 Jul, 2024 | 15:04
Updated At-05 Jan, 2026 | 10:37
Rejected At-
Credits

btrfs: qgroup: fix quota root leak after quota disable failure

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.

Vendors
-
Not available
Products
-
Metrics (CVSS)
VersionBase scoreBase severityVector
Weaknesses
Attack Patterns
Solution/Workaround
References
HyperlinkResource Type
EPSS History
Score
Latest Score
-
N/A
No data available for selected date range
Percentile
Latest Percentile
-
N/A
No data available for selected date range
Stakeholder-Specific Vulnerability Categorization (SSVC)
▼Common Vulnerabilities and Exposures (CVE)
cve.org
Assigner:Linux
Assigner Org ID:416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published At:29 Jul, 2024 | 15:04
Updated At:05 Jan, 2026 | 10:37
Rejected At:
▼CVE Numbering Authority (CNA)
btrfs: qgroup: fix quota root leak after quota disable failure

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 Products
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • fs/btrfs/qgroup.c
Default Status
unaffected
Versions
Affected
  • From bed92eae26ccf280d1a2168b7509447b56675a27 before 94818bdb00ef34a996a06aa63d11f591074cb757 (git)
  • From bed92eae26ccf280d1a2168b7509447b56675a27 before 8a69529f22590b67bb018de9acbcf94abc8603cf (git)
  • From bed92eae26ccf280d1a2168b7509447b56675a27 before 5ef3961682e5310f2221bae99bcf9f5d0f4b0d51 (git)
  • From bed92eae26ccf280d1a2168b7509447b56675a27 before f88aeff5a173e8ba3133314eb4b964236ef3589d (git)
  • From bed92eae26ccf280d1a2168b7509447b56675a27 before 7dd6a5b96157a21245566b21fd58276a214357ff (git)
  • From bed92eae26ccf280d1a2168b7509447b56675a27 before a7e4c6a3031c74078dba7fa36239d0f4fe476c53 (git)
Vendor
Linux Kernel Organization, IncLinux
Product
Linux
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Program Files
  • fs/btrfs/qgroup.c
Default Status
affected
Versions
Affected
  • 3.6
Unaffected
  • From 0 before 3.6 (semver)
  • From 5.10.223 through 5.10.* (semver)
  • From 5.15.164 through 5.15.* (semver)
  • From 6.1.101 through 6.1.* (semver)
  • From 6.6.42 through 6.6.* (semver)
  • From 6.9.11 through 6.9.* (semver)
  • From 6.10 through * (original_commit_for_fix)
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757
N/A
https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cf
N/A
https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51
N/A
https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589d
N/A
https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ff
N/A
https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53
N/A
Hyperlink: https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cf
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589d
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ff
Resource: N/A
Hyperlink: https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53
Resource: N/A
▼Authorized Data Publishers (ADP)
1. CVE Program Container
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757
x_transferred
https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cf
x_transferred
https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51
x_transferred
https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589d
x_transferred
https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ff
x_transferred
https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53
x_transferred
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
N/A
Hyperlink: https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cf
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589d
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ff
Resource:
x_transferred
Hyperlink: https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53
Resource:
x_transferred
Hyperlink: https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Resource: N/A
2. CISA ADP Vulnrichment
Affected Products
Metrics
VersionBase scoreBase severityVector
Metrics Other Info
Impacts
CAPEC IDDescription
Solutions

Configurations

Workarounds

Exploits

Credits

Timeline
EventDate
Replaced By

Rejected Reason

References
HyperlinkResource
Information is not available yet
▼National Vulnerability Database (NVD)
nvd.nist.gov
Source:416baaa9-dc9f-4396-8d5f-8c081fb06d67
Published At:29 Jul, 2024 | 15:15
Updated At:03 Nov, 2025 | 22:17

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.

CISA Catalog
Date AddedDue DateVulnerability NameRequired Action
N/A
Date Added: N/A
Due Date: N/A
Vulnerability Name: N/A
Required Action: N/A
Metrics
TypeVersionBase scoreBase severityVector
Primary3.15.5MEDIUM
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Type: Primary
Version: 3.1
Base score: 5.5
Base severity: MEDIUM
Vector:
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
CPE Matches

Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions before 5.10.223(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 5.11(inclusive) to 5.15.164(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 5.16(inclusive) to 6.1.101(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 6.2(inclusive) to 6.6.42(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>Versions from 6.7(inclusive) to 6.9.11(exclusive)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>6.10
cpe:2.3:o:linux:linux_kernel:6.10:rc1:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>6.10
cpe:2.3:o:linux:linux_kernel:6.10:rc2:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>6.10
cpe:2.3:o:linux:linux_kernel:6.10:rc3:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>6.10
cpe:2.3:o:linux:linux_kernel:6.10:rc4:*:*:*:*:*:*
Linux Kernel Organization, Inc
linux
>>linux_kernel>>6.10
cpe:2.3:o:linux:linux_kernel:6.10:rc5:*:*:*:*:*:*
Weaknesses
CWE IDTypeSource
CWE-401Primarynvd@nist.gov
CWE ID: CWE-401
Type: Primary
Source: nvd@nist.gov
Evaluator Description

Evaluator Impact

Evaluator Solution

Vendor Statements

References
HyperlinkSourceResource
https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ff416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cf416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589d416baaa9-dc9f-4396-8d5f-8c081fb06d67
Patch
https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51af854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ffaf854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cfaf854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757af854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53af854a3a-2127-422b-91ae-364da2661108
Patch
https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589daf854a3a-2127-422b-91ae-364da2661108
Patch
https://lists.debian.org/debian-lts-announce/2025/01/msg00001.htmlaf854a3a-2127-422b-91ae-364da2661108
N/A
Hyperlink: https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ff
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cf
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589d
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/5ef3961682e5310f2221bae99bcf9f5d0f4b0d51
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/7dd6a5b96157a21245566b21fd58276a214357ff
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/8a69529f22590b67bb018de9acbcf94abc8603cf
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/94818bdb00ef34a996a06aa63d11f591074cb757
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/a7e4c6a3031c74078dba7fa36239d0f4fe476c53
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://git.kernel.org/stable/c/f88aeff5a173e8ba3133314eb4b964236ef3589d
Source: af854a3a-2127-422b-91ae-364da2661108
Resource:
Patch
Hyperlink: https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html
Source: af854a3a-2127-422b-91ae-364da2661108
Resource: N/A

Change History

0
Information is not available yet

Similar CVEs

0Records found

Details not found