Description
In the Linux kernel, the following vulnerability has been resolved:

btrfs: clear free space tree creation state on rebuild failure

btrfs_rebuild_free_space_tree() sets BTRFS_FS_CREATING_FREE_SPACE_TREE
before rebuilding the free space tree. Several error paths return
without clearing this flag.

The transaction restart failure path can leave the flag set on a live
filesystem, causing delayed reference processing to be skipped. Clear it
on all free space tree rebuild failure paths. Keep
BTRFS_FS_FREE_SPACE_TREE_UNTRUSTED set, since a failed rebuild leaves
the free space tree untrusted. Callers must fall back to extent-tree
caching.
Published: 2026-10-06
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Data Integrity
Action: Apply Patch
AI Analysis

Impact

The Linux kernel’s btrfs file system can set a flag, BTRFS_FS_CREATING_FREE_SPACE_TREE, to indicate that a free space tree rebuild is underway. Several error paths return without clearing this flag, which causes delayed reference processing to be bypassed and leaves the free space tree in an untrusted state while normal file data remains accessible. This improper recovery can result in corruption or loss of filesystem metadata, effectively weakening data integrity. The issue is classified as CWE‑459 (Missing Release or Reset of Resources) and is a form of improper handling of kernel state rather than a direct code‑execution flaw.

Affected Systems

Any system running a Linux kernel that includes the btrfs file system and has not yet incorporated the commit that clears BTRFS_FS_CREATING_FREE_SPACE_TREE is affected. The vulnerability applies to all kernel releases that ship with the btrfs tree before the patch identified by the commits in the supplied references (e.g., 3565893cc72cdf6b795cf6a33e7ff9605322334d, a32bedab8ece9d1f90a1476a5b486a1804dc78ba, and b1df2997d0cd2be7bef7b4ab64ccfd1019dedc81). Systems running newer kernels that include these commits are not vulnerable.

Risk and Exploitability

The CVSS score of 5.5 indicates medium severity, and the EPSS score of <1% reflects a low yet nonzero likelihood of exploitation at this time. Based on the description, it is inferred that an attacker must have local write access to a mounted btrfs file system and must trigger an error path during a free space tree rebuild to exploit the unwound flag. The vulnerability does not grant arbitrary code execution but can lead to metadata corruption and potential data loss, especially in production environments with write‑heavy workloads. The vulnerability is not listed in the CISA KEV catalog, which further suggests limited active exploitation.

Generated by OpenCVE AI on October 11, 2026 at 19:06 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a revision that includes the patch that clears BTRFS_FS_CREATING_FREE_SPACE_TREE, as identified by the commits in the references.
  • After upgrading, run "btrfs check --repair" or "btrfs rescue" on the affected file systems to rebuild the free space tree and confirm that the flag has been cleared and the tree is trusted.
  • While a kernel upgrade is pending, limit write‑heavy operations on the affected btrfs file systems and consider mounting them read‑only until the free space tree can be rebuilt and validated.

Generated by OpenCVE AI on October 11, 2026 at 19:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 11 Oct 2026 17:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-371
CWE-754

Sun, 11 Oct 2026 12:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-459
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


Tue, 06 Oct 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-371
CWE-754

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: clear free space tree creation state on rebuild failure btrfs_rebuild_free_space_tree() sets BTRFS_FS_CREATING_FREE_SPACE_TREE before rebuilding the free space tree. Several error paths return without clearing this flag. The transaction restart failure path can leave the flag set on a live filesystem, causing delayed reference processing to be skipped. Clear it on all free space tree rebuild failure paths. Keep BTRFS_FS_FREE_SPACE_TREE_UNTRUSTED set, since a failed rebuild leaves the free space tree untrusted. Callers must fall back to extent-tree caching.
Title btrfs: clear free space tree creation state on rebuild failure
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-10-19T09:16:15.841Z

Reserved: 2026-09-25T10:25:14.330Z

Link: CVE-2026-98244

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:12.510

Modified: 2026-10-19T10:18:25.303

Link: CVE-2026-98244

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98244 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-11T19:15:18Z

Weaknesses