{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-49912","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2025-05-01T14:05:17.250Z","datePublished":"2025-05-01T14:10:54.231Z","dateUpdated":"2026-05-11T19:09:06.973Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T19:09:06.973Z"},"descriptions":[{"lang":"en","value":"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."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/tests/qgroup-tests.c"],"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"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/tests/qgroup-tests.c"],"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"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"4.9.333"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"4.14.299"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"4.19.265"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.4.224"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.10.154"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"5.15.78"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.0.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"6.1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/d81370396025cf63a7a1b5f8bb25a3479203b2ca"},{"url":"https://git.kernel.org/stable/c/3f58283d83a588ff5da62fc150de19e798ed2ec2"},{"url":"https://git.kernel.org/stable/c/203204798831c35d855ecc6417d98267d2d2184b"},{"url":"https://git.kernel.org/stable/c/5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9"},{"url":"https://git.kernel.org/stable/c/0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84"},{"url":"https://git.kernel.org/stable/c/f46ea5fa3320dca4fe0c0926b49a5f14cb85de62"},{"url":"https://git.kernel.org/stable/c/da7003434bcab0ae9aba3f2c003e734cae093326"},{"url":"https://git.kernel.org/stable/c/d37de92b38932d40e4a251e876cc388f9aee5f42"}],"title":"btrfs: fix ulist leaks in error paths of qgroup self tests","x_generator":{"engine":"bippy-1.2.0"}}}}