{"id":"CVE-2022-49469","summary":"btrfs: fix anon_dev leak in create_subvol()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix anon_dev leak in create_subvol()\n\nWhen btrfs_qgroup_inherit(), btrfs_alloc_tree_block, or\nbtrfs_insert_root() fail in create_subvol(), we return without freeing\nanon_dev. Reorganize the error handling in create_subvol() to fix this.","modified":"2026-04-02T08:27:37.179260Z","published":"2025-02-26T02:13:13.387Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49469.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/2256e901f5bddc56e24089c96f27b77da932dfcc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7a875ad8706f0903a0e812e0dd701956ee9826ff"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d887b3de318834f9aa637ecf79c6bc66cba7c69a"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49469.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49469"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"2dfb1e43f57dd3aeaa66f7cf05d068db2d4c8788"},{"fixed":"d887b3de318834f9aa637ecf79c6bc66cba7c69a"},{"fixed":"7a875ad8706f0903a0e812e0dd701956ee9826ff"},{"fixed":"2256e901f5bddc56e24089c96f27b77da932dfcc"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"917d608fe375041eb7f29befa6a6d7fd3cf32dde"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49469.json"}}],"schema_version":"1.7.5"}