Bug 2546436 (CVE-2026-98245) - CVE-2026-98245 kernel: btrfs: take commit root semaphore when iterating in mark_block_group_to_copy()
Summary: CVE-2026-98245 kernel: btrfs: take commit root semaphore when iterating in ma...
Keywords:
Status: NEW
Alias: CVE-2026-98245
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-06 09:20 UTC by OSIDB Bzimport
Modified: 2026-10-11 06:13 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-06 09:20:32 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.