CVE-2022-49914 Details
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix inode list leak during backref walking at resolve_indirect_refs() During backref walking, at resolve_indirect_refs(), if we get an error we jump to the 'out' label and call ulist_free() on the 'parents' ulist, which frees all the elements in the ulist - however that does not free any inode lists that may be attached to elements, through the 'aux' field of a ulist node, so we end up leaking lists if we have any attached to the unodes. Fix this by calling free_leaf_list() instead of ulist_free() when we exit from resolve_indirect_refs(). The static function free_leaf_list() is moved up for this to be possible and it's slightly simplified by removing unnecessary code.
A vulnerability in the Linux kernel's Btrfs file system has been addressed, which involved an inode list leak during backreference resolution. The issue arose because, during the backreference walking process, an error would trigger a jump to the 'out' label, where the 'parents' ulist was freed. However, this process did not free any inode lists attached to the ulist elements via the 'aux' field, leading to a leak of those lists. The vulnerability has been fixed by changing the cleanup process to call 'free_leaf_list()' instead of 'ulist_free()', ensuring that all attached inode lists are properly freed. The 'free_leaf_list()' function was also slightly simplified by removing unnecessary code.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/2c0329406bb28109c07c6e23e5e3e0fa618a95d7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/396515db923ad5cbeb179d6b88927870b4cbebb7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/5614dc3a47e3310fbc77ea3b67eaadd1c6417bf1 | kernel.org | Patch |
| https://git.kernel.org/stable/c/6ba3479f9e96b9ad460c7e77abc26dd16e5dec4f | kernel.org | Patch |
| https://git.kernel.org/stable/c/a52e24c7fcc3c5ce3588a14e3663c00868d36623 | kernel.org | Patch |
| https://git.kernel.org/stable/c/b1dc9019bb5f89abae85645de1a2dd4830c1f8e9 | kernel.org | Patch |
| https://git.kernel.org/stable/c/cded2c89774b99b67c98147ae103ea878c92a206 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 3.5, < 4.14.299 >= 4.15, < 4.19.265 >= 4.20, < 5.4.224 >= 5.5, < 5.10.154 >= 5.11, < 5.15.78 >= 5.16, < 6.0.8 6.1 rc1 6.1 rc2 6.1 rc3 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 12, 2025 | Initial Analysis | [email protected] |
| May 1, 2025 | New CVE Received | kernel.org |