CVE-2022-49996 Details
Description
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.
A memory leak vulnerability has been identified in the Linux kernel's Btrfs file system component. The issue arises in the function 'btrfs_get_dev_args_from_path()', where the subfunction 'btrfs_get_bdev_and_sb()' can fail if the provided path is invalid. When this failure occurs, 'btrfs_get_dev_args_from_path()' exits without freeing previously allocated memory for 'args->uuid' and 'args->fsid', leading to a memory leak. The vulnerability has been addressed by ensuring that 'btrfs_put_dev_args_from_path()' is called to release the memory when 'btrfs_get_bdev_and_sb()' fails.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/4b124ad87244cd7f0883c5eaa38d2326b2154cad | kernel.org | Patch |
| https://git.kernel.org/stable/c/5f52402c77013e4a826394b807dd5ea4dc83bd72 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9ea0106a7a3d8116860712e3f17cd52ce99f6707 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 5.15.54, < 5.15.64 >= 5.16, < 5.19.6 6.0 rc1 6.0 rc2 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Nov 14, 2025 | Initial Analysis | [email protected] |
| Jun 18, 2025 | New CVE Received | kernel.org |