{"id":"CVE-2022-49996","published":"2025-06-18T11:00:56Z","modified":"2026-05-23T15:23:31Z","title":"btrfs: fix possible memory leak in btrfs_get_dev_args_from_path()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix possible memory leak in btrfs_get_dev_args_from_path()\n\nIn btrfs_get_dev_args_from_path(), btrfs_get_bdev_and_sb() can fail if\nthe path is invalid. In this case, btrfs_get_dev_args_from_path()\nreturns directly without freeing args->uuid and args->fsid allocated\nbefore, which causes memory leak.\n\nTo fix these possible leaks, when btrfs_get_bdev_and_sb() fails,\nbtrfs_put_dev_args_from_path() is called to clean up the memory.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00253,"percentile":0.16958,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/5f52402c77013e4a826394b807dd5ea4dc83bd72","tags":[]},{"url":"https://git.kernel.org/stable/c/4b124ad87244cd7f0883c5eaa38d2326b2154cad","tags":[]},{"url":"https://git.kernel.org/stable/c/9ea0106a7a3d8116860712e3f17cd52ce99f6707","tags":[]}],"priority":{"score":3.4,"factors":[{"name":"EPSS percentile","points":3.39}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 321a81835b4aed4f717f89921286f6544ffa8be9, < 5f52402c77013e4a826394b807dd5ea4dc83bd72",">= faa775c41d655a4786e9d53cb075a77bb5a75f66, < 4b124ad87244cd7f0883c5eaa38d2326b2154cad",">= faa775c41d655a4786e9d53cb075a77bb5a75f66, < 9ea0106a7a3d8116860712e3f17cd52ce99f6707",">= 5.15.54, < 5.15.64"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"euvd":{"id":"EUVD-2022-55275","exploited":false,"provenance":"source"}}