{"id":"CVE-2022-49912","aliases":["CVE-2022-49912"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix ulist leaks in error paths of qgroup self tests","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix ulist leaks in error paths of qgroup self tests\n\nIn the test_no_shared_qgroup() and test_multiple_refs() qgroup self tests,\nif we fail to add the tree ref, remove the extent item or remove the\nextent ref, we are returning from the test function without freeing the\n\"old_roots\" ulist that was allocated by the previous calls to\nbtrfs_find_all_roots(). Fix that by calling ulist_free() before returning.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix ulist leaks in error paths of qgroup self tests\n\nIn the test_no_shared_qgroup() and test_multiple_refs() qgroup self tests,\nif we fail to add the tree ref, remove the extent item or remove the\nextent ref, we are returning from the test function without freeing the\n\"old_roots\" ulist that was allocated by the previous calls to\nbtrfs_find_all_roots(). Fix that by calling ulist_free() before returning.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: btrfs: se corrigen fugas de ulist en las rutas de error de las autopruebas de qgroup. En las autopruebas de qgroup test_no_shared_qgroup() y test_multiple_refs(), si no se añade la referencia del árbol, se elimina el elemento de extensión o se elimina la referencia de extensión, se regresa de la función de prueba sin liberar la ulist \"old_roots\" asignada por las llamadas anteriores a btrfs_find_all_roots(). Se puede solucionar llamando a ulist_free() antes de regresar.","source":"nvd"}],"published":"2025-05-01T14:10:54.231Z","modified":"2026-06-17T05:19:29.773Z","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":"442244c9633292a147ab2b29e7007a7c8a3909b2","fixed":"d81370396025cf63a7a1b5f8bb25a3479203b2ca","status":"affected"},{"type":"git","introduced":"442244c9633292a147ab2b29e7007a7c8a3909b2","fixed":"3f58283d83a588ff5da62fc150de19e798ed2ec2","status":"affected"},{"type":"git","introduced":"442244c9633292a147ab2b29e7007a7c8a3909b2","fixed":"203204798831c35d855ecc6417d98267d2d2184b","status":"affected"},{"type":"git","introduced":"442244c9633292a147ab2b29e7007a7c8a3909b2","fixed":"5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9","status":"affected"},{"type":"git","introduced":"442244c9633292a147ab2b29e7007a7c8a3909b2","fixed":"0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84","status":"affected"},{"type":"git","introduced":"442244c9633292a147ab2b29e7007a7c8a3909b2","fixed":"f46ea5fa3320dca4fe0c0926b49a5f14cb85de62","status":"affected"},{"type":"git","introduced":"442244c9633292a147ab2b29e7007a7c8a3909b2","fixed":"da7003434bcab0ae9aba3f2c003e734cae093326","status":"affected"},{"type":"git","introduced":"442244c9633292a147ab2b29e7007a7c8a3909b2","fixed":"d37de92b38932d40e4a251e876cc388f9aee5f42","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.2","status":"unaffected"},{"type":"semver","introduced":"4.9.333","lastAffected":"4.9.*","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":"4.2","fixed":"4.9.333"},{"status":"affected","introduced":"4.10","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/d81370396025cf63a7a1b5f8bb25a3479203b2ca","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f58283d83a588ff5da62fc150de19e798ed2ec2","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/203204798831c35d855ecc6417d98267d2d2184b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f46ea5fa3320dca4fe0c0926b49a5f14cb85de62","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/da7003434bcab0ae9aba3f2c003e734cae093326","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d37de92b38932d40e4a251e876cc388f9aee5f42","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49912","url":"https://www.cve.org/CVERecord?id=CVE-2022-49912","licence":"CVE Terms of Use","modified":"2026-05-11T19:09:06.973Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49912","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49912","licence":"Public domain","modified":"2026-06-17T05:19:29.773Z"}],"updatedAt":"2026-11-25T22:58:20.934Z","epss":{"score":0.00203,"percentile":0.10813,"date":"2026-12-01T12:00:22.000Z"}}