Skip to main content
← All vulnerabilities
CVE-2022-49996

btrfs: fix possible memory leak in btrfs_get_dev_args_from_path()

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.64
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 5.15.54 · fixed in 5.15.64

  • Linux Linux

    5.16

References 3

git.kernel.org