CVE-2026-46164
Severity CVSS v4.0:
Pending analysis
Type:
CWE-415
Double Free
Publication date:
28/05/2026
Last modified:
19/06/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
btrfs: fix double free in create_space_info_sub_group() error path<br />
<br />
When kobject_init_and_add() fails, the call chain is:<br />
<br />
create_space_info_sub_group()<br />
-> btrfs_sysfs_add_space_info_type()<br />
-> kobject_init_and_add()<br />
-> failure<br />
-> kobject_put(&sub_group->kobj)<br />
-> space_info_release()<br />
-> kfree(sub_group)<br />
<br />
Then control returns to create_space_info_sub_group(), where:<br />
<br />
btrfs_sysfs_add_space_info_type() returns error<br />
-> kfree(sub_group)<br />
<br />
Thus, sub_group is freed twice.<br />
<br />
Keep parent->sub_group[index] = NULL for the failure path, but after<br />
btrfs_sysfs_add_space_info_type() has called kobject_put(), let the<br />
kobject release callback handle the cleanup.
Impact
Base Score 3.x
7.00
Severity 3.x
HIGH
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.1.162 (including) | 6.2 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.6.122 (including) | 6.6.141 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.12.67 (including) | 6.12.90 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.16 (including) | 6.18.32 (excluding) |
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.19 (including) | 7.0.7 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/14b22be1dd844383eb03af9b1ee3b6b25d32aeaf
- https://git.kernel.org/stable/c/259af6857a1b4f1e9ef8b780353f9d11c26a22bd
- https://git.kernel.org/stable/c/a7449edf96143f192606ec8647e3167e1ecbd728
- https://git.kernel.org/stable/c/c2d59527cba6d59f0d77a75c1101ab4e69758bea
- https://git.kernel.org/stable/c/d2a675f2e238ec96c8e91e2718c1f910c9c8fb21
- https://git.kernel.org/stable/c/dfd05a16b5c9d1d98b47905f37f2fccda52173d1



