CVE-2026-46164
btrfs: fix double free in create_space_info_sub_group() error path
Reported by linux · Published May 28, 2026
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix double free in create_space_info_sub_group() error path When kobject_init_and_add() fails, the call chain is: create_space_info_sub_group() -> btrfs_sysfs_add_space_info_type() -> kobject_init_and_add() -> failure -> kobject_put(&sub_group->kobj) -> space_info_release() -> kfree(sub_group) Then control returns to create_space_info_sub_group(), where: btrfs_sysfs_add_space_info_type() returns error -> kfree(sub_group) Thus, sub_group is freed twice. Keep parent->sub_group[index] = NULL for the failure path, but after btrfs_sysfs_add_space_info_type() has called kobject_put(), let the kobject release callback handle the cleanup.
EPSS 0.14% · 3.1th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12-modules-extra | Amazon Linux | 1:6.12.90-120.164.amzn2023 |
| perf6.18 | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.12-headers | Amazon Linux | 1:6.12.90-120.164.amzn2023 |
| kernel6.12-tools | Amazon Linux | 1:6.12.90-120.164.amzn2023 |
| perf6.12 | Amazon Linux | 1:6.12.90-120.164.amzn2023 |
| python3-perf6.18 | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.18-devel | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.18-headers | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
| kernel6.18-tools | Amazon Linux | 1:6.18.33-63.124.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | 64c7ddda83acfbaa0efb381a1928ce908c584607, 0bd151ce4200ca847990e05cca29a76456982ca5, 190d5a7c4fe42b8c9aa46e3336389e7cb10395bb |
| Linux | Linux | 6.16, 0, 6.1.176 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | perf6.18 | 0 |
| amazon:2023 | kernel6.12-headers | 0 |
| amazon:2023 | kernel6.12-tools | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | python3-perf6.18 | 0 |
| amazon:2023 | kernel6.18-devel | 0 |
| amazon:2023 | kernel6.18-headers | 0 |
| amazon:2023 | kernel6.18-tools | 0 |
| linux | linux_kernel | 6.1.162, 6.6.122, 6.12.67 |
| amazon:2023 | bpftool6.18 | 0 |
| Linux | Linux | 6.12.67, 6.6.122, 6.16 |
| amazon:2023 | kernel6.18-modules-extra-common | 0 |
| amazon:2023 | bpftool6.12 | 0 |
| amazon:2023 | kernel6.18-tools-devel | 0 |
| amazon:2023 | kernel-livepatch-6.12.90-120.164 | 0 |
| amazon:2023 | kernel-livepatch-6.18.33-63.124 | 0 |
| amazon:2023 | kernel6.12 | 0 |
…and 6 more
Timeline
- May 27, 2026 CVE Published
- May 28, 2026 EPSS Score (15 in total, the first dated here)
- Jun 1, 2026 Security Advisory (131 in total, the first dated here)
- Jun 4, 2026 Coalition ESS Score
- Aug 11, 2026 Distribution Patch (128 in total, the first dated here)
- Sep 16, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-46164
vulnetix vdb fixes CVE-2026-46164
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-46164/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart