CVE-2022-49469

btrfs: fix anon_dev leak in create_subvol()

State
Published
Severity
Not scored
Published
Feb 26, 2025
Updated
May 23, 2026
Reserved
Feb 26, 2025

Read the record on cve.org

Description

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

btrfs: fix anon_dev leak in create_subvol()

When btrfs_qgroup_inherit(), btrfs_alloc_tree_block, or btrfs_insert_root() fail in create_subvol(), we return without freeing anon_dev. Reorganize the error handling in create_subvol() to fix this.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788 to before d887b3de318834f9aa637ecf79c6bc66cba7c69aAffected
  • 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788 to before 7a875ad8706f0903a0e812e0dd701956ee9826ffAffected
  • 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788 to before 2256e901f5bddc56e24089c96f27b77da932dfccAffected
  • 917d608fe375041eb7f29befa6a6d7fd3cf32ddeAffected
  • 5.8.3 to before 5.9Affected
LinuxLinux
  • 5.9Affected
  • before 5.9Not affected
  • 5.17.14 through 5.17.*Not affected
  • 5.18.3 through 5.18.*Not affected
  • 5.19 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.