btrfs: fix possible memory leak in btrfs_get_dev_args_from_path()
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5f52402c77013e4a826394b807dd5ea4dc83bd72, Kernel 4b124ad87244cd7f0883c5eaa38d2326b2154cad, Kernel 9ea0106a7a3d8116860712e3f17cd52ce99f6707 and 2 more.
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix possible memory leak in btrfs_get_dev_args_from_path() In btrfs_get_dev_args_from_path(), btrfs_get_bdev_and_sb() can fail if the path is invalid. In this case, btrfs_get_dev_args_from_path() returns directly without freeing args->uuid and args->fsid allocated before, which causes memory leak. To fix these possible leaks, when btrfs_get_bdev_and_sb() fails, btrfs_put_dev_args_from_path() is called to clean up the memory.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=321a81835b4aed4f717f89921286f6544ffa8be9 <5f52402c77013e4a826394b807dd5ea4dc83bd72, >=faa775c41d655a4786e9d53cb075a77bb5a75f66 <4b124ad87244cd7f0883c5eaa38d2326b2154cad, >=faa775c41d655a4786e9d53cb075a77bb5a75f66 <9ea0106a7a3d8116860712e3f17cd52ce99f6707, =5.16, >=5.15.54 <5.15.64 | 5f52402c77013e4a826394b807dd5ea4dc83bd72, 4b124ad87244cd7f0883c5eaa38d2326b2154cad, 9ea0106a7a3d8116860712e3f17cd52ce99f6707, 5.15.64 |
| linux-kernel: Kernel | >=5.16.0 <5.19.6, >=5.15.54 <5.15.64 | 5.19.6, 5.15.64 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket