In the Linux kernel, the following vulnerability has been resolved:
btrfs: fix possible memory leak in btrfsgetdevargsfrom_path()
In btrfsgetdevargsfrompath(), btrfsgetbdevandsb() can fail if the path is invalid. In this case, btrfsgetdevargsfrompath() returns directly without freeing args->uuid and args->fsid allocated before, which causes memory leak.
To fix these possible leaks, when btrfsgetbdevandsb() fails, btrfsputdevargsfrom_path() is called to clean up the memory.
{
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49996.json",
"cna_assigner": "Linux"
}