{"id":"CVE-2026-46164","aliases":["CVE-2026-46164"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: fix double free in create_space_info_sub_group() error path","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix double free in create_space_info_sub_group() error path\n\nWhen kobject_init_and_add() fails, the call chain is:\n\ncreate_space_info_sub_group()\n-> btrfs_sysfs_add_space_info_type()\n-> kobject_init_and_add()\n-> failure\n-> kobject_put(&sub_group->kobj)\n-> space_info_release()\n-> kfree(sub_group)\n\nThen control returns to create_space_info_sub_group(), where:\n\nbtrfs_sysfs_add_space_info_type() returns error\n-> kfree(sub_group)\n\nThus, sub_group is freed twice.\n\nKeep parent->sub_group[index] = NULL for the failure path, but after\nbtrfs_sysfs_add_space_info_type() has called kobject_put(), let the\nkobject release callback handle the cleanup.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: fix double free in create_space_info_sub_group() error path\n\nWhen kobject_init_and_add() fails, the call chain is:\n\ncreate_space_info_sub_group()\n-> btrfs_sysfs_add_space_info_type()\n-> kobject_init_and_add()\n-> failure\n-> kobject_put(&sub_group->kobj)\n-> space_info_release()\n-> kfree(sub_group)\n\nThen control returns to create_space_info_sub_group(), where:\n\nbtrfs_sysfs_add_space_info_type() returns error\n-> kfree(sub_group)\n\nThus, sub_group is freed twice.\n\nKeep parent->sub_group[index] = NULL for the failure path, but after\nbtrfs_sysfs_add_space_info_type() has called kobject_put(), let the\nkobject release callback handle the cleanup.","source":"cvelist"}],"published":"2026-05-28T09:36:19.810Z","modified":"2026-08-05T12:30:08.949Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7,"rating":"HIGH"}],"cwes":["CWE-415"],"affected":[{"ranges":[{"type":"git","introduced":"64c7ddda83acfbaa0efb381a1928ce908c584607","fixed":"c2d59527cba6d59f0d77a75c1101ab4e69758bea","status":"affected"},{"type":"git","introduced":"0bd151ce4200ca847990e05cca29a76456982ca5","fixed":"d2a675f2e238ec96c8e91e2718c1f910c9c8fb21","status":"affected"},{"type":"git","introduced":"190d5a7c4fe42b8c9aa46e3336389e7cb10395bb","fixed":"14b22be1dd844383eb03af9b1ee3b6b25d32aeaf","status":"affected"},{"type":"git","introduced":"f92ee31e031c7819126d2febdda0c3e91f5d2eb9","fixed":"dfd05a16b5c9d1d98b47905f37f2fccda52173d1","status":"affected"},{"type":"git","introduced":"f92ee31e031c7819126d2febdda0c3e91f5d2eb9","fixed":"259af6857a1b4f1e9ef8b780353f9d11c26a22bd","status":"affected"},{"type":"git","introduced":"f92ee31e031c7819126d2febdda0c3e91f5d2eb9","fixed":"a7449edf96143f192606ec8647e3167e1ecbd728","status":"affected"},{"type":"semver","introduced":"6.1.162","fixed":"6.1.176","status":"affected"},{"type":"semver","introduced":"6.6.122","fixed":"6.6.141","status":"affected"},{"type":"semver","introduced":"6.12.67","fixed":"6.12.90","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.1.176","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.141","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.90","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.32","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.7","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.1.162","fixed":"6.2"},{"status":"affected","introduced":"6.6.122","fixed":"6.6.141"},{"status":"affected","introduced":"6.12.67","fixed":"6.12.90"},{"status":"affected","introduced":"6.16","fixed":"6.18.32"},{"status":"affected","introduced":"6.19","fixed":"7.0.7"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/c2d59527cba6d59f0d77a75c1101ab4e69758bea","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d2a675f2e238ec96c8e91e2718c1f910c9c8fb21","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/14b22be1dd844383eb03af9b1ee3b6b25d32aeaf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/dfd05a16b5c9d1d98b47905f37f2fccda52173d1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/259af6857a1b4f1e9ef8b780353f9d11c26a22bd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a7449edf96143f192606ec8647e3167e1ecbd728","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-46164","url":"https://www.cve.org/CVERecord?id=CVE-2026-46164","licence":"CVE Terms of Use","modified":"2026-08-05T12:30:08.949Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-46164","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-46164","licence":"Public domain","modified":"2026-06-19T13:16:34.477Z"}],"updatedAt":"2026-11-25T22:59:22.829Z","epss":{"score":0.00136,"percentile":0.03286,"date":"2026-12-01T12:00:22.000Z"}}