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

btrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps

When btrfs_drop_extent_map_range() splits an extent map, the new split
maps inherit the original map's flags through a local 'flags' variable.
Commit f86f7a75e2fb ("btrfs: use the flags of an extent map to identify
the compression type") changed the EXTENT_FLAG_LOGGING clearing to
operate on em->flags instead of that local 'flags' copy, so a split of
an extent map that is currently being logged wrongly inherits
EXTENT_FLAG_LOGGING.

The flag is then never cleared on the split, and when it is freed while
still on the inode's modified_extents list (for example by the extent
map shrinker) it trips the WARN_ON(!list_empty(&em->list)) in
btrfs_free_extent_map() and leads to a use-after-free.

Clear EXTENT_FLAG_LOGGING from the local 'flags' copy used for the
splits and only clear EXTENT_FLAG_PINNED from em->flags, restoring the
behaviour prior to f86f7a75e2fb.
Published: 2026-08-12
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability exists in the Linux kernel’s Btrfs subsystem, specifically when the btrfs_drop_extent_map_range() function splits an extent map. Due to a change in how the EXTENT_FLAG_LOGGING flag is handled, the flag is copied to the new split extent map and never cleared. When that split map is later freed while still present on the inode’s modified_extents list, a WARN_ON check fails and triggers a use‑after‑free inside btrfs_free_extent_map(). This can lead to a kernel crash or, if an attacker can control the split operation, to execution of arbitrary code at the kernel level.

Affected Systems

All Linux kernel builds that include the Btrfs filesystem and lack the commit that removes the EXTENT_FLAG_LOGGING flag from split extent maps are affected. The CVE data does not list a specific kernel version range, so any distribution shipping an unpatched kernel is potentially vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates a high‑risk vulnerability, while the EPSS score of less than 1 % and absence from the CISA KEV catalog imply a low likelihood of exploitation. The flaw is a classic use‑after‑free combined with improper flag handling (CWE‑825). An attacker with local or privileged access who can trigger btrfs_drop_extent_map_range() on a logged extent may cause a kernel panic or elevation of privileges, but no publicly available exploit is documented at this time.

Generated by OpenCVE AI on August 14, 2026 at 00:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that includes the commit fixing the EXTENT_FLAG_LOGGING propagation in split extent maps (apply the vendor’s patch or the specific commit and rebuild the kernel).
  • Restart the system to load the updated kernel, ensuring the fix is active.
  • Until the kernel is updated, unmount or disable Btrfs filesystems to prevent the vulnerable code path from being exercised, or configure the system to avoid mounting them until the patch is applied.

Generated by OpenCVE AI on August 14, 2026 at 00:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
History

Thu, 13 Aug 2026 23:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

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'}


Thu, 13 Aug 2026 14:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Thu, 13 Aug 2026 12:15:00 +0000

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

None

cvssV3_1

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

threat_severity

Moderate


Wed, 12 Aug 2026 16:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: btrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps When btrfs_drop_extent_map_range() splits an extent map, the new split maps inherit the original map's flags through a local 'flags' variable. Commit f86f7a75e2fb ("btrfs: use the flags of an extent map to identify the compression type") changed the EXTENT_FLAG_LOGGING clearing to operate on em->flags instead of that local 'flags' copy, so a split of an extent map that is currently being logged wrongly inherits EXTENT_FLAG_LOGGING. The flag is then never cleared on the split, and when it is freed while still on the inode's modified_extents list (for example by the extent map shrinker) it trips the WARN_ON(!list_empty(&em->list)) in btrfs_free_extent_map() and leads to a use-after-free. Clear EXTENT_FLAG_LOGGING from the local 'flags' copy used for the splits and only clear EXTENT_FLAG_PINNED from em->flags, restoring the behaviour prior to f86f7a75e2fb.
Title btrfs: don't propagate EXTENT_FLAG_LOGGING to split extent maps
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-08-17T05:05:39.676Z

Reserved: 2026-07-30T09:28:09.394Z

Link: CVE-2026-68442

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-12T00:17:44.477

Modified: 2026-08-17T06:17:53.260

Link: CVE-2026-68442

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-12T00:00:00Z

Links: CVE-2026-68442 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-14T01:00:05Z

Weaknesses
  • CWE-825

    Expired Pointer Dereference