Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2022-49996

published

btrfs: fix possible memory leak in btrfs_get_dev_args_from_path()

Published
18 Jun 2025, 11:00:56 UTC
Updated
23 May 2026, 15:23:31 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux321a81835b4aed4f717f89921286f6544ffa8be9 to < 5f52402c77013e4a826394b807dd5ea4dc83bd72 · faa775c41d655a4786e9d53cb075a77bb5a75f66 to < 4b124ad87244cd7f0883c5eaa38d2326b2154cad · faa775c41d655a4786e9d53cb075a77bb5a75f66 to < 9ea0106a7a3d8116860712e3f17cd52ce99f6707 · 5.15.54 to < 5.15.64 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.16 (affected) · 0 to < 5.16 (unaffected · semver) · 5.15.64 through 5.15.* (unaffected · semver) · 5.19.6 through 5.19.* (unaffected · semver) · 6.0 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2KERNEL-5.15-2022-008 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2 kernelaarch64 Listed in advisory Not stated ALAS2KERNEL-5.15-2022-008
Amazon Linux AL2 kerneli686 Listed in advisory Not stated ALAS2KERNEL-5.15-2022-008
Amazon Linux AL2 kernelsrc Listed in advisory Not stated ALAS2KERNEL-5.15-2022-008
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 kernelx86_64 Listed in advisory Not stated ALAS2KERNEL-5.15-2022-008

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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

1

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 321a81835b4aed4f717f89921286f6544ffa8be9 to < 5f52402c77013e4a826394b807dd5ea4dc83bd72 (affected · git)faa775c41d655a4786e9d53cb075a77bb5a75f66 to < 4b124ad87244cd7f0883c5eaa38d2326b2154cad (affected · git)faa775c41d655a4786e9d53cb075a77bb5a75f66 to < 9ea0106a7a3d8116860712e3f17cd52ce99f6707 (affected · git)5.15.54 to < 5.15.64 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.16 (affected)0 to < 5.16 (unaffected · semver)5.15.64 through 5.15.* (unaffected · semver)5.19.6 through 5.19.* (unaffected · semver)6.0 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

3

Provider assertions

1

Linux · cna

btrfs: fix possible memory leak in btrfs_get_dev_args_from_path()

Provenance

Schema
5.2
Searchable
yes
Content hash
b5d3353c7eaa9c61858e1e11adfed01f71e53d71efeaa5c790765e175773ef84
Ingested
23 Sep 2026, 08:04:21 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected