CVE-2026-46164: btrfs: fix double free in create_space_info_sub_group() error path
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.
Security readout for executives and security teams
Plain-English summary
A Linux Btrfs error-handling flaw can free the same kernel object twice when creation of a sysfs space-information subgroup fails. This memory corruption may affect confidentiality, integrity, and availability, but exploitation requires local, complex conditions and user interaction according to the supplied CVSS vector.
Executive priority
Treat this as a high-priority kernel maintenance issue on Btrfs systems, especially critical infrastructure. It is not currently supported as an emergency internet-wide threat: the vector is local and complex, and no active exploitation evidence is supplied. Accelerate verified vendor updates while avoiding assumptions from the ambiguous version list.
Technical view
When kobject_init_and_add() fails, btrfs_sysfs_add_space_info_type() calls kobject_put(), whose release callback frees sub_group. create_space_info_sub_group() then frees sub_group again. The kernel fix leaves the failed parent entry null and relies on the kobject release callback for cleanup.
Likely exposure
Exposure is limited to Linux systems running an affected kernel and exercising the relevant Btrfs sysfs failure path. The supplied version data is unusual and includes commit identifiers, overlapping-looking releases, and an affected entry named "0"; validate exact vendor or distribution builds rather than relying on version comparison alone.
Exploitation context
The supplied CVSS is 7.0 with local access, high attack complexity, no privileges, and required user interaction. CISA KEV status is false, and the source bundle provides no evidence of active exploitation or a public exploit. Exact conditions needed to trigger the initiating kobject failure are not documented here.
Researcher notes
The flaw is a double free in a failure-only ownership path. Analysis should focus on reachability of kobject_init_and_add() failure during Btrfs space-info subgroup creation and whether downstream kernels contain an applicable stable commit. The sources do not establish practical exploitability, trigger reliability, affected distributions, or observed attack activity.
Mitigation direction
Identify systems using Btrfs and record their exact kernel package and build.
Apply a vendor kernel update containing the applicable referenced stable fix.
Prioritize Btrfs hosts where kernel compromise or outages would have high business impact.
Consult distribution guidance when the supplied upstream version mapping does not clearly match packaged kernels.
Validation and detection
Confirm whether Btrfs is enabled or mounted on each potentially affected system.
Map the installed kernel build against vendor advisories and the CVE record.
Verify the applicable stable fix commit is present in the deployed kernel source or package.
After updating, confirm systems boot normally and run the intended vendor kernel.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cve · low confidence lookup
CVE-2026-46164 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
1CVSS vectors
3Timeline events
0ADP providers
7Source links
CVSS vector scores
1 official score
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.