{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-49912","id":"CVE-2022-49912","title":"btrfs: fix ulist leaks in error paths of qgroup self tests","description":"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 ca","descriptionLong":"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.","published":"2025-05-01T14:10:54.231Z","updated":"2026-10-28T02:31:13.652965856Z","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":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"d81370396025cf63a7a1b5f8bb25a3479203b2ca","status":"affected","versionType":"git"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"3f58283d83a588ff5da62fc150de19e798ed2ec2","status":"affected","versionType":"git"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"203204798831c35d855ecc6417d98267d2d2184b","status":"affected","versionType":"git"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9","status":"affected","versionType":"git"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84","status":"affected","versionType":"git"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"f46ea5fa3320dca4fe0c0926b49a5f14cb85de62","status":"affected","versionType":"git"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"da7003434bcab0ae9aba3f2c003e734cae093326","status":"affected","versionType":"git"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"d37de92b38932d40e4a251e876cc388f9aee5f42","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.2","status":"affected"},{"version":"0","lessThan":"4.2","status":"unaffected","versionType":"semver"},{"version":"4.9.333","lessThanOrEqual":"4.9.*","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/d81370396025cf63a7a1b5f8bb25a3479203b2ca","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3f58283d83a588ff5da62fc150de19e798ed2ec2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/203204798831c35d855ecc6417d98267d2d2184b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f46ea5fa3320dca4fe0c0926b49a5f14cb85de62","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/da7003434bcab0ae9aba3f2c003e734cae093326","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/d37de92b38932d40e4a251e876cc388f9aee5f42","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49912.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49912","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-49912","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49912","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-49912","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-49912","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}