CVE-2022-49469Published Feb 26, 2025 · Feb 26Updated 2d ago
btrfs: fix anon_dev leak in create_subvol()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
5.9
|
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.
From the CVE record · Linux
The Linux kernel's btrfs subvolume creation code can leak an anonymous device resource when certain operations fail. The input does not specify how an attacker could trigger the failure or whether authentication or user interaction is required.
Engineers running Linux kernels with btrfs should check their versions against the vendor advisory; affected versions are not specified.