CVE-2022-49996
MEDIUMLinux Kernel - Use-After-Free in btrfs_get_dev_args_from_path
Title source: llmDescription
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.
References (3)
Core 3
Scores
CVSS v3
5.5
EPSS
0.0019
EPSS Percentile
9.3%
Attack Vector
LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Details
CWE
CWE-401
Status
published
Products (13)
linux/Kernel
< 5.15.64linux
linux/Kernel
5.16.0 - 5.19.6linux
Linux/Linux
< 5.16
Linux/Linux
321a81835b4aed4f717f89921286f6544ffa8be9 - 5f52402c77013e4a826394b807dd5ea4dc83bd72
Linux/Linux
5.15.54 - 5.15.64
Linux/Linux
5.15.64 - 5.15.*
Linux/Linux
5.16
Linux/Linux
5.19.6 - 5.19.*
Linux/Linux
6.0
Linux/Linux
faa775c41d655a4786e9d53cb075a77bb5a75f66 - 4b124ad87244cd7f0883c5eaa38d2326b2154cad
... and 3 more
Published
Jun 18, 2025
Tracked Since
Feb 18, 2026