CVE-2026-98245

btrfs: take commit root semaphore when iterating in mark_block_group_to_copy()

Description

In the Linux kernel, the following vulnerability has been resolved: btrfs: take commit root semaphore when iterating in mark_block_group_to_copy() mark_block_group_to_copy() iterates over the commit root with skip_locking=true. A concurrent transaction commit can swap and free the commit root during iteration, causing use-after-free when accessing extent buffers. Fix it by using path->need_commit_sem to protect the commit root search.

Key facts

Published
6 Oct 2026
Last changed
30 Oct 2026
Assigned by
Linux
EPSS
0.173% likely to be exploited in the next 30 days, higher than 6.759% of CVEs (scores for 17 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 78ce9fc269af6e69c1399ab910ba6bc81c934f67 up to but excluding 90242b776df83f8b1ea901f80b568b4fc2318c61 (affected)
  • 78ce9fc269af6e69c1399ab910ba6bc81c934f67 up to but excluding bffe773f92885603db14047bba0f12089105929e (affected)
  • 78ce9fc269af6e69c1399ab910ba6bc81c934f67 up to but excluding 93a025166495c63ba5b8ac721c7040d5312e8335 (affected)
  • 78ce9fc269af6e69c1399ab910ba6bc81c934f67 up to but excluding 8e2007b263ea250251ec3021a0a197da990ee1a8 (affected)
  • 78ce9fc269af6e69c1399ab910ba6bc81c934f67 up to but excluding 709f6a5e986535005110c6c69b322f63631cb200 (affected)
  • 78ce9fc269af6e69c1399ab910ba6bc81c934f67 up to but excluding c32490c6d3f3a9f2d177d57c7eb8bbc347561d08 (affected)
  • 78ce9fc269af6e69c1399ab910ba6bc81c934f67 up to but excluding 0594e3423f4ba3137c734371169491f9a98e9af4 (affected)
LinuxLinux
  • Default status: affected
  • 5.12 (affected)
  • 0 up to but excluding 5.12 (unaffected)
  • 5.15.224 up to and including 5.15.* (unaffected)
  • 6.1.191 up to and including 6.1.* (unaffected)
  • 6.6.160 up to and including 6.6.* (unaffected)
  • 6.12.112 up to and including 6.12.* (unaffected)
  • 6.18.54 up to and including 6.18.* (unaffected)
  • 7.2.8 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 6 Oct 2026 Published

References