CVE-2022-49912

Source
https://cve.org/CVERecord?id=CVE-2022-49912
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49912.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49912
Downstream
Published
2025-05-01T14:10:54.231Z
Modified
2026-03-12T03:25:57.788164Z
Summary
btrfs: fix ulist leaks in error paths of qgroup self tests
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix ulist leaks in error paths of qgroup self tests

In the testnosharedqgroup() and testmultiplerefs() qgroup self tests, if we fail to add the tree ref, remove the extent item or remove the extent ref, we are returning from the test function without freeing the "oldroots" ulist that was allocated by the previous calls to btrfsfindallroots(). Fix that by calling ulistfree() before returning.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49912.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
442244c9633292a147ab2b29e7007a7c8a3909b2
Fixed
d81370396025cf63a7a1b5f8bb25a3479203b2ca
Fixed
3f58283d83a588ff5da62fc150de19e798ed2ec2
Fixed
203204798831c35d855ecc6417d98267d2d2184b
Fixed
5d1a47ebf84540e40b5b43fc21aef0d6c0f627d9
Fixed
0a0dead4ad1a2e2a9bdf133ef45111d7c8daef84
Fixed
f46ea5fa3320dca4fe0c0926b49a5f14cb85de62
Fixed
da7003434bcab0ae9aba3f2c003e734cae093326
Fixed
d37de92b38932d40e4a251e876cc388f9aee5f42

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49912.json"