{"id":"CVE-2022-49914","aliases":["CVE-2022-49914"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix inode list leak during backref walking at resolve_indirect_refs()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: corrección de fuga de lista de inodos durante el recorrido de backref en resolve_indirect_refs() Durante el recorrido de backref, en resolve_indirect_refs(), si obtenemos un error saltamos a la etiqueta 'out' y llamamos a ulist_free() en la ulist 'parents', que libera todos los elementos en la ulist - sin embargo, eso no libera ninguna lista de inodos que pueda estar adjunta a elementos, a través del campo 'aux' de un nodo ulist, por lo que terminamos filtrando listas si tenemos alguna adjunta a los unodes. Arregle esto llamando a free_leaf_list() en lugar de ulist_free() cuando salimos de resolve_indirect_refs(). La función estática free_leaf_list() se mueve hacia arriba para que esto sea posible y se simplifica ligeramente eliminando código innecesario.","source":"nvd"}],"published":"2025-05-01T14:10:55.581Z","modified":"2026-06-17T05:19:30.010Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","fixed":"b1dc9019bb5f89abae85645de1a2dd4830c1f8e9","status":"affected"},{"type":"git","introduced":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","fixed":"cded2c89774b99b67c98147ae103ea878c92a206","status":"affected"},{"type":"git","introduced":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","fixed":"2c0329406bb28109c07c6e23e5e3e0fa618a95d7","status":"affected"},{"type":"git","introduced":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","fixed":"a52e24c7fcc3c5ce3588a14e3663c00868d36623","status":"affected"},{"type":"git","introduced":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","fixed":"6ba3479f9e96b9ad460c7e77abc26dd16e5dec4f","status":"affected"},{"type":"git","introduced":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","fixed":"396515db923ad5cbeb179d6b88927870b4cbebb7","status":"affected"},{"type":"git","introduced":"3301958b7c1dae8f0f5ded63aa881e0b71e78464","fixed":"5614dc3a47e3310fbc77ea3b67eaadd1c6417bf1","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.5","status":"unaffected"},{"type":"semver","introduced":"4.14.299","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.265","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.224","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.154","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.78","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.0.8","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.5","fixed":"4.14.299"},{"status":"affected","introduced":"4.15","fixed":"4.19.265"},{"status":"affected","introduced":"4.20","fixed":"5.4.224"},{"status":"affected","introduced":"5.5","fixed":"5.10.154"},{"status":"affected","introduced":"5.11","fixed":"5.15.78"},{"status":"affected","introduced":"5.16","fixed":"6.0.8"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"},{"status":"affected","version":"6.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b1dc9019bb5f89abae85645de1a2dd4830c1f8e9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cded2c89774b99b67c98147ae103ea878c92a206","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2c0329406bb28109c07c6e23e5e3e0fa618a95d7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a52e24c7fcc3c5ce3588a14e3663c00868d36623","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6ba3479f9e96b9ad460c7e77abc26dd16e5dec4f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/396515db923ad5cbeb179d6b88927870b4cbebb7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5614dc3a47e3310fbc77ea3b67eaadd1c6417bf1","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49914","url":"https://www.cve.org/CVERecord?id=CVE-2022-49914","licence":"CVE Terms of Use","modified":"2026-05-11T19:09:09.294Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49914","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49914","licence":"Public domain","modified":"2026-06-17T05:19:30.010Z"}],"updatedAt":"2026-11-25T22:58:20.935Z","epss":{"score":0.00203,"percentile":0.10813,"date":"2026-12-01T12:00:22.000Z"}}