CVE-2026-98245
JSON

Not scored

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

Severity
Not scored
Exploit likelihood
0.21% (higher than 7% of CVEs)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 90242b776df83f8b1ea901f80b568b4fc2318c61, from 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before bffe773f92885603db14047bba0f12089105929e, from 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 93a025166495c63ba5b8ac721c7040d5312e8335, from 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 8e2007b263ea250251ec3021a0a197da990ee1a8, from 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 709f6a5e986535005110c6c69b322f63631cb200, from 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before c32490c6d3f3a9f2d177d57c7eb8bbc347561d08, from 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 0594e3423f4ba3137c734371169491f9a98e9af4, 5.12
Not affected: before 5.12, from 5.15.224 up to 5.15.*, from 6.1.191 up to 6.1.*, from 6.6.160 up to 6.6.*, from 6.12.112 up to 6.12.*, from 6.18.54 up to 6.18.*
CVE List

References

Sources

SourceRecordLicence
CVE ListCVE-2026-98245 changed 2026-10-30CVE Terms of Use
NVDCVE-2026-98245 changed 2026-10-30Public domain