CVE-2022-49996

MEDIUM EPSS 9.4%
Published Jun 18, 20251y ago · Modified Jun 17, 20262w ago
5.5 CVSS 3.1
Medium
Find Similar
Published Jun 18, 2025 1y ago
Last Modified Jun 17, 2026 2w ago

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.

CVSS Details

Base Score
5.5
Exploitability
1.8
Impact
3.6
Vector string
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector Local
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope Unchanged
Confidentiality None
Integrity None
Availability High

Threat Intelligence

EPSS Exploit Probability
9.4% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-401

Affected Products 4

VendorProductVersionRange
linuxlinux_kernel*≥5.15.54  –  <5.15.64
linuxlinux_kernel*≥5.16  –  <5.19.6
linuxlinux_kernel6.0any
linuxlinux_kernel6.0any

References 3

  • git.kernel.org https://git.kernel.org/stable/c/4b124ad87244cd7f0883c5eaa38d2326b2154cad
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/5f52402c77013e4a826394b807dd5ea4dc83bd72
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/9ea0106a7a3d8116860712e3f17cd52ce99f6707
    Patch

Remediation

  • git.kernel.org https://git.kernel.org/stable/c/4b124ad87244cd7f0883c5eaa38d2326b2154cad
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/5f52402c77013e4a826394b807dd5ea4dc83bd72
    Patch
  • git.kernel.org https://git.kernel.org/stable/c/9ea0106a7a3d8116860712e3f17cd52ce99f6707
    Patch