CVE-2026-46164 json
btrfs: fix double free in create_space_info_sub_group() error path
published 2026-05-28 5 mo ago modified 2026-08-05 3 mo ago also EUVD-2026-32791
- cvss
- 7.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 3%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 6.1.176, 6.6.141, 6.12.90, 6.18.32, 7.0.7, 7.1
- linux Debian 12 6.1.176-1
- linux Debian 13 6.12.90-1
- linux Debian 14 7.0.7-1
debian advisories DEBIAN-CVE-2026-46164
- linux Ubuntu 24.04 LTS 6.8.0-136.136
- linux Ubuntu 26.04 LTS 7.0.0-28.28
- linux-aws Ubuntu 24.04 LTS 6.8.0-1061.64
- linux-aws Ubuntu 26.04 LTS 7.0.0-1009.9
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1064.72
- linux-gcp Ubuntu 26.04 LTS 7.0.0-1008.8
- linux-gke Ubuntu 24.04 LTS 6.8.0-1059.67
- linux-gke Ubuntu 26.04 LTS 7.0.0-1003.4
ubuntu advisories UBUNTU-CVE-2026-46164
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-source openSUSE Tumbleweed 7.0.11-1.1
opensuse advisories openSUSE-SU-2026:10954-1
- git.kernel.org/stable/c/c2d59527cba6d59f0d77a75c1101ab4e69758bea commit
- git.kernel.org/stable/c/d2a675f2e238ec96c8e91e2718c1f910c9c8fb21 commit
- git.kernel.org/stable/c/14b22be1dd844383eb03af9b1ee3b6b25d32aeaf commit
- git.kernel.org/stable/c/dfd05a16b5c9d1d98b47905f37f2fccda52173d1 commit
- git.kernel.org/stable/c/259af6857a1b4f1e9ef8b780353f9d11c26a22bd commit
- git.kernel.org/stable/c/a7449edf96143f192606ec8647e3167e1ecbd728 commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-46164 updated
kernel: btrfs: fix double free in create_space_info_sub_group() error path
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.0 | CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-415 Double Free
- Technology feeds
References
- git.kernel.org /stable/c/c2d59527cba6d59f0d77a75c1101ab4e69758bea
-
git.kernel.org
/stable/c/d2a675f2e238ec96c8e91e2718c1f910c9c8fb21
patch
-
git.kernel.org
/stable/c/14b22be1dd844383eb03af9b1ee3b6b25d32aeaf
patch
-
git.kernel.org
/stable/c/dfd05a16b5c9d1d98b47905f37f2fccda52173d1
patch
-
git.kernel.org
/stable/c/259af6857a1b4f1e9ef8b780353f9d11c26a22bd
patch
-
git.kernel.org
/stable/c/a7449edf96143f192606ec8647e3167e1ecbd728
patch
Sources
- CVE List CVE-2026-46164
- NVD CVE-2026-46164
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.