CVE-2022-49996

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-49996
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-49996.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-49996
Downstream
Published
2025-06-18T11:15:27Z
Modified
2025-06-18T16:01:33Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

btrfs: fix possible memory leak in btrfsgetdevargsfrom_path()

In btrfsgetdevargsfrompath(), btrfsgetbdevandsb() can fail if the path is invalid. In this case, btrfsgetdevargsfrompath() returns directly without freeing args->uuid and args->fsid allocated before, which causes memory leak.

To fix these possible leaks, when btrfsgetbdevandsb() fails, btrfsputdevargsfrom_path() is called to clean up the memory.

References

Affected packages

Debian:12 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.0.2-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}