# CVE-2022-49469: btrfs: fix anon_dev leak in create_subvol()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-02)
- Published: 2025-02-26T02:13:13.387Z
- Modified: 2026-06-17T05:18:08.603Z
- Weaknesses: CWE-401
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788 before d887b3de318834f9aa637ecf79c6bc66cba7c69a; from 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788 before 7a875ad8706f0903a0e812e0dd701956ee9826ff; from 2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788 before 2256e901f5bddc56e24089c96f27b77da932dfcc; 917d608fe375041eb7f29befa6a6d7fd3cf32dde; from 5.8.3 before 5.9; 5.9 (not affected: before 5.9; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.8.3 before 5.17.14; from 5.18 before 5.18.3

## References

- <https://git.kernel.org/stable/c/d887b3de318834f9aa637ecf79c6bc66cba7c69a> (patch)
- <https://git.kernel.org/stable/c/7a875ad8706f0903a0e812e0dd701956ee9826ff> (patch)
- <https://git.kernel.org/stable/c/2256e901f5bddc56e24089c96f27b77da932dfcc> (patch)

## Sources

- CVE List: [CVE-2022-49469](https://www.cve.org/CVERecord?id=CVE-2022-49469), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2022-49469](https://nvd.nist.gov/vuln/detail/CVE-2022-49469), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49469 · Whole record: https://cve.day/CVE-2022-49469.json · Rebuilt by cve.day 2026-11-25T22:58:20.675Z
