{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49914","id":"CVE-2022-49914","title":"btrfs: fix inode list leak during backref walking at resolve_indirect_refs()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix inode list leak during backref walking at resolve_indirect_refs()\n\nDuring backref walking, at resolve_indirect_refs(), if we get an error\nwe jump to the 'out' label and call ulist_free() on the 'parents' ulist,\nwhich frees all the elements in the ulist - however that does not free\nany inode lists that may be attached t","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix inode list leak during backref walking at resolve_indirect_refs()\n\nDuring backref walking, at resolve_indirect_refs(), if we get an error\nwe jump to the 'out' label and call ulist_free() on the 'parents' ulist,\nwhich frees all the elements in the ulist - however that does not free\nany inode lists that may be attached to elements, through the 'aux' field\nof a ulist node, so we end up leaking lists if we have any attached to\nthe unodes.\n\nFix this by calling free_leaf_list() instead of ulist_free() when we exit\nfrom resolve_indirect_refs(). The static function free_leaf_list() is\nmoved up for this to be possible and it's slightly simplified by removing\nunnecessary code.","published":"2025-05-01T14:10:55.581Z","updated":"2026-10-28T02:30:32.728477904Z","reserved":"2025-05-01T14:05:17.250Z","status":"Analyzed","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","lessThan":"b1dc9019bb5f89abae85645de1a2dd4830c1f8e9","status":"affected","versionType":"git"},{"version":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","lessThan":"cded2c89774b99b67c98147ae103ea878c92a206","status":"affected","versionType":"git"},{"version":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","lessThan":"2c0329406bb28109c07c6e23e5e3e0fa618a95d7","status":"affected","versionType":"git"},{"version":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","lessThan":"a52e24c7fcc3c5ce3588a14e3663c00868d36623","status":"affected","versionType":"git"},{"version":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","lessThan":"6ba3479f9e96b9ad460c7e77abc26dd16e5dec4f","status":"affected","versionType":"git"},{"version":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","lessThan":"396515db923ad5cbeb179d6b88927870b4cbebb7","status":"affected","versionType":"git"},{"version":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","lessThan":"5614dc3a47e3310fbc77ea3b67eaadd1c6417bf1","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.5","status":"affected"},{"version":"0","lessThan":"3.5","status":"unaffected","versionType":"semver"},{"version":"4.14.299","lessThanOrEqual":"4.14.*","status":"unaffected","versionType":"semver"},{"version":"4.19.265","lessThanOrEqual":"4.19.*","status":"unaffected","versionType":"semver"},{"version":"5.4.224","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.154","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.78","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.0.8","lessThanOrEqual":"6.0.*","status":"unaffected","versionType":"semver"},{"version":"6.1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-401"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/b1dc9019bb5f89abae85645de1a2dd4830c1f8e9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/cded2c89774b99b67c98147ae103ea878c92a206","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2c0329406bb28109c07c6e23e5e3e0fa618a95d7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a52e24c7fcc3c5ce3588a14e3663c00868d36623","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6ba3479f9e96b9ad460c7e77abc26dd16e5dec4f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/396515db923ad5cbeb179d6b88927870b4cbebb7","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5614dc3a47e3310fbc77ea3b67eaadd1c6417bf1","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49914.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49914","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00203,"epssPercentile":0.10365,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-49914","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49914","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49914","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-49914","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}