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

Summary

CVECVE-2026-98245
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-10-06 09:18:12 UTC
Updated2026-10-06 09:18:12 UTC
DescriptionIn 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.

Risk And Classification

EPSS: 0.002090000 probability, percentile 0.100670000 (date 2026-10-06)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 78ce9fc269af6e69c1399ab910ba6bc81c934f67 8e2007b263ea250251ec3021a0a197da990ee1a8 git Not specified
CNA Linux Linux affected 78ce9fc269af6e69c1399ab910ba6bc81c934f67 709f6a5e986535005110c6c69b322f63631cb200 git Not specified
CNA Linux Linux affected 78ce9fc269af6e69c1399ab910ba6bc81c934f67 c32490c6d3f3a9f2d177d57c7eb8bbc347561d08 git Not specified
CNA Linux Linux affected 78ce9fc269af6e69c1399ab910ba6bc81c934f67 0594e3423f4ba3137c734371169491f9a98e9af4 git Not specified
CNA Linux Linux affected 5.12 Not specified
CNA Linux Linux unaffected 5.12 semver Not specified
CNA Linux Linux unaffected 6.12.112 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.54 6.18.* semver Not specified
CNA Linux Linux unaffected 7.2.8 7.2.* semver Not specified
CNA Linux Linux unaffected 7.3-rc4 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/8e2007b263ea250251ec3021a0a197da990ee1a8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c32490c6d3f3a9f2d177d57c7eb8bbc347561d08 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/709f6a5e986535005110c6c69b322f63631cb200 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0594e3423f4ba3137c734371169491f9a98e9af4 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report