{"id":"CVE-2022-49912","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2025-05-01T15:16:16.363","lastModified":"2026-06-17T05:19:29.773","vulnStatus":"Analyzed","cveTags":[],"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."},{"lang":"es","value":"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."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["fs/btrfs/tests/qgroup-tests.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"d81370396025cf63a7a1b5f8bb25a3479203b2ca","versionType":"git","status":"affected"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"3f58283d83a588ff5da62fc150de19e798ed2ec2","versionType":"git","status":"affected"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"203204798831c35d855ecc6417d98267d2d2184b","versionType":"git","status":"affected"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9","versionType":"git","status":"affected"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84","versionType":"git","status":"affected"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"f46ea5fa3320dca4fe0c0926b49a5f14cb85de62","versionType":"git","status":"affected"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"da7003434bcab0ae9aba3f2c003e734cae093326","versionType":"git","status":"affected"},{"version":"442244c9633292a147ab2b29e7007a7c8a3909b2","lessThan":"d37de92b38932d40e4a251e876cc388f9aee5f42","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["fs/btrfs/tests/qgroup-tests.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"4.2","status":"affected"},{"version":"0","lessThan":"4.2","versionType":"semver","status":"unaffected"},{"version":"4.9.333","lessThanOrEqual":"4.9.*","versionType":"semver","status":"unaffected"},{"version":"4.14.299","lessThanOrEqual":"4.14.*","versionType":"semver","status":"unaffected"},{"version":"4.19.265","lessThanOrEqual":"4.19.*","versionType":"semver","status":"unaffected"},{"version":"5.4.224","lessThanOrEqual":"5.4.*","versionType":"semver","status":"unaffected"},{"version":"5.10.154","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.78","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.0.8","lessThanOrEqual":"6.0.*","versionType":"semver","status":"unaffected"},{"version":"6.1","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","baseScore":5.5,"baseSeverity":"MEDIUM","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"NONE","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":3.6}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-401"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.2","versionEndExcluding":"4.9.333","matchCriteriaId":"905F2B23-D86A-48BE-9EB8-4E05DF3FEB75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.10","versionEndExcluding":"4.14.299","matchCriteriaId":"2FE9A829-20E8-4929-AE9B-02761322A926"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"4.19.265","matchCriteriaId":"ABED5D97-9B16-4CF6-86E3-D5F5C4358E35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.20","versionEndExcluding":"5.4.224","matchCriteriaId":"1D67A077-EB45-4ADE-94CD-F9A76F6C319C"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.5","versionEndExcluding":"5.10.154","matchCriteriaId":"475D097C-AB5A-4CF5-899F-413077854ABD"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.11","versionEndExcluding":"5.15.78","matchCriteriaId":"AB8B27B9-B41B-42D5-AE67-0A89A8A8EEB1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.16","versionEndExcluding":"6.0.8","matchCriteriaId":"EC9A754E-625D-42F3-87A7-960D643E2867"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.1:rc1:*:*:*:*:*:*","matchCriteriaId":"E7E331DA-1FB0-4DEC-91AC-7DA69D461C11"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.1:rc2:*:*:*:*:*:*","matchCriteriaId":"17F0B248-42CF-4AE6-A469-BB1BAE7F4705"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.1:rc3:*:*:*:*:*:*","matchCriteriaId":"E2422816-0C14-4B5E-A1E6-A9D776E5C49B"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/203204798831c35d855ecc6417d98267d2d2184b","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/3f58283d83a588ff5da62fc150de19e798ed2ec2","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/d37de92b38932d40e4a251e876cc388f9aee5f42","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/d81370396025cf63a7a1b5f8bb25a3479203b2ca","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/da7003434bcab0ae9aba3f2c003e734cae093326","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/f46ea5fa3320dca4fe0c0926b49a5f14cb85de62","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":["Patch"]}]}