Skip to main content
Network Thinking Solutions Logo

CVE-2022-49996

Linux kernel: btrfs: fix possible memory leak in btrfs_get_dev_args_from_path()

All CVEs
CVE-2022-49996Published 6/18/2025

Linux kernel: btrfs: fix possible memory leak in btrfs_get_dev_args_from_path()

Vendor advisory
CVSS5.5Medium

Overview

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.

Published
6/18/2025
Last modified
6/17/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.15.54, < 5.15.64

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 5.19.6

Verify advisory

Source
linux kernel
linux
6.0

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
Linux
Linux
≥ 321a81835b4aed4f717f89921286f6544ffa8be9, < 5f52402c77013e4a826394b807dd5ea4dc83bd72

Verify advisory

Source
Linux
Linux
≥ faa775c41d655a4786e9d53cb075a77bb5a75f66, < 4b124ad87244cd7f0883c5eaa38d2326b2154cad

Verify advisory

Source
Linux
Linux
≥ faa775c41d655a4786e9d53cb075a77bb5a75f66, < 9ea0106a7a3d8116860712e3f17cd52ce99f6707

Verify advisory

Source
Linux
Linux
≥ 5.15.54, < 5.15.64

Verify advisory

Source
Linux
Linux
5.16

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 5.5. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.