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.
Published: 2026-05-28
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel’s Btrfs filesystem contains a double‑free bug in the create_space_info() routine. When a failure occurs after kobject_init_and_add() has partially initialized a kobject, the code frees the same memory block twice – first explicitly with kfree() and then again via the kobject release callback. This improper deallocation can cause kernel memory corruption. The CVE description does not provide evidence of arbitrary code execution or other specific impacts beyond the potential for memory corruption.

Affected Systems

All Linux kernel builds that include the Btrfs filesystem and lack the upstream commit that removed the double‑free flaw are affected. No specific version range is listed; any kernel lacking the fixed commit in stable or mainline branches should be examined. The vulnerability is tied to the Linux kernel product, regardless of distribution or vendor, as long as Btrfs is enabled.

Risk and Exploitability

The EPSS score of less than 1% indicates a very low likelihood that this vulnerability will be exploited in the wild. It is not listed in the CISA KEV catalog, and no publicly documented exploits exist. The flaw’s impact is kernel memory corruption triggered when an error path in Btrfs is exercised. The CVSS score of 7.8 indicates a high severity. While the CVE description does not mention active exploitation, the specific conditions needed to trigger the error path are not detailed.

Generated by OpenCVE AI on May 30, 2026 at 13:00 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version that incorporates the Btrfs double‑free fix (e.g., the commit referenced in the advisory such as 3f487be8).
  • If a kernel upgrade cannot be performed immediately, apply the patch from the provided git references to the btrfs source tree and rebuild the kernel.
  • Check for distribution‑specific kernel patches or backports that address this issue and update accordingly.

Generated by OpenCVE AI on May 30, 2026 at 13:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 01 Jun 2026 17:00:00 +0000


Sat, 30 May 2026 11:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Fri, 29 May 2026 04:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Fri, 29 May 2026 00:15:00 +0000


Thu, 28 May 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Thu, 28 May 2026 10:15:00 +0000

Type Values Removed Values Added
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.
Title btrfs: fix double free in create_space_info() error path
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-14T17:56:36.554Z

Reserved: 2026-05-13T15:03:33.099Z

Link: CVE-2026-46129

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-28T10:16:28.473

Modified: 2026-06-01T17:17:27.807

Link: CVE-2026-46129

cve-icon Redhat

Severity :

Publid Date: 2026-05-28T00:00:00Z

Links: CVE-2026-46129 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-05-30T13:15:24Z

Weaknesses
  • CWE-763

    Release of Invalid Pointer or Reference