CVE-2022-49469

btrfs: fix anon_dev leak in create_subvol()

MEDIUM
5.5
CVSS Score
Published: February 26, 2025 at 02:13 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 5.8.35.18 ≤ v < 5.18.35.8.3 ≤ v < 5.17.145.8.3 ≤ v < 5.95.9 ≤ v < 5.17.145.9 ≤ v < 5.18.35.9 ≤ v < 5.192dfb1e43f57dd3aeaa66f7cf05d068db2d4c87885.8.35.9917d608fe375041eb7f29befa6a6d7fd3cf32dde
Vendor states this is fixed in 2256e901f5bddc56e24089c96f27b77da932dfcc (fixed)
Vendor states this is fixed in 7a875ad8706f0903a0e812e0dd701956ee9826ff (fixed)
Vendor states this is fixed in d887b3de318834f9aa637ecf79c6bc66cba7c69a (fixed)
Vendor states this is fixed in 5.17.14 (unaffected)
Vendor states this is fixed in 5.18.3 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.9 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2256e901f5bddc56e24089c96f27b77da932dfcc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7a875ad8706f0903a0e812e0dd701956ee9826ff
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d887b3de318834f9aa637ecf79c6bc66cba7c69a

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card