CVE-2026-46129 Details
Description
In the Linux kernel, the following vulnerability has been resolved: btrfs: fix double free in create_space_info() error path When kobject_init_and_add() fails, the call chain is: create_space_info() -> btrfs_sysfs_add_space_info_type() -> kobject_init_and_add() -> failure -> kobject_put(&space_info->kobj) -> space_info_release() -> kfree(space_info) Then control returns to create_space_info(): btrfs_sysfs_add_space_info_type() returns error -> goto out_free -> kfree(space_info) This causes a double free. Keep the direct kfree(space_info) for the earlier failure path, but after btrfs_sysfs_add_space_info_type() has called kobject_put(), let the kobject release callback handle the cleanup.
A double free vulnerability has been identified in the Linux kernel's Btrfs file system component, specifically within the space information management functions. This issue arises in versions of the Linux kernel through 6.19. When the function 'kobject_init_and_add()' fails, it triggers a sequence of events that leads to 'kobject_put()' being called, followed by 'space_info_release()' and 'kfree(space_info)'. However, control then returns to 'create_space_info()', where 'btrfs_sysfs_add_space_info_type()' has already indicated an error, prompting another 'kfree(space_info)' call. This sequence creates a double free condition. The vulnerability has been addressed by modifying the error handling process to prevent the double free while maintaining proper memory management.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. Instructions for upgrading the Linux kernel can be found in the official Linux kernel documentation.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/3f487be81292702a59ea9dbc4088b3360a50e837 | kernel.org | Patch |
| https://git.kernel.org/stable/c/9a060970fd7b5e1c561e4ce73cb9949e4269a738 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ae6d6e31ceb72b7697c28a528e4923c08e3c2ef5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/c2670ec4aa49ca226bce9776601e0da37502be07 | kernel.org | Patch |
| https://git.kernel.org/stable/c/dd6ade0fdd59218d71a981ae7c937a304e49209c | kernel.org | Patch |
| https://git.kernel.org/stable/c/f414b3abbba59ef379a2b3c31f2bdd9358ed5e53 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-415 | Double Free | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.1.162, < 6.1.175 >= 6.6.122, < 6.6.140 >= 6.12.67, < 6.12.88 >= 6.18.7, < 6.18.30 >= 6.19.1, < 7.0.7 6.19 - 6.19 rc6 6.19 rc7 6.19 rc8 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 24, 2026 | Initial Analysis | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 1, 2026 | CVE Modified | kernel.org |
| May 30, 2026 | CVE Modified | kernel.org |
| May 28, 2026 | New CVE Received | kernel.org |