{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-98245","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-09-25T10:25:14.330Z","datePublished":"2026-10-06T08:45:14.758Z","dateUpdated":"2026-10-06T08:45:14.758Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-10-06T08:45:14.758Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: take commit root semaphore when iterating in mark_block_group_to_copy()\n\nmark_block_group_to_copy() iterates over the commit root with\nskip_locking=true. A concurrent transaction commit can swap and free\nthe commit root during iteration, causing use-after-free when\naccessing extent buffers.\n\nFix it by using path->need_commit_sem to protect the commit root search."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/dev-replace.c"],"versions":[{"version":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","lessThan":"8e2007b263ea250251ec3021a0a197da990ee1a8","status":"affected","versionType":"git"},{"version":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","lessThan":"709f6a5e986535005110c6c69b322f63631cb200","status":"affected","versionType":"git"},{"version":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","lessThan":"c32490c6d3f3a9f2d177d57c7eb8bbc347561d08","status":"affected","versionType":"git"},{"version":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","lessThan":"0594e3423f4ba3137c734371169491f9a98e9af4","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/btrfs/dev-replace.c"],"versions":[{"version":"5.12","status":"affected"},{"version":"0","lessThan":"5.12","status":"unaffected","versionType":"semver"},{"version":"6.12.112","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.54","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.2.8","lessThanOrEqual":"7.2.*","status":"unaffected","versionType":"semver"},{"version":"7.3-rc4","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.12.112"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"6.18.54"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"7.2.8"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.12","versionEndExcluding":"7.3-rc4"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/8e2007b263ea250251ec3021a0a197da990ee1a8"},{"url":"https://git.kernel.org/stable/c/709f6a5e986535005110c6c69b322f63631cb200"},{"url":"https://git.kernel.org/stable/c/c32490c6d3f3a9f2d177d57c7eb8bbc347561d08"},{"url":"https://git.kernel.org/stable/c/0594e3423f4ba3137c734371169491f9a98e9af4"}],"title":"btrfs: take commit root semaphore when iterating in mark_block_group_to_copy()","x_generator":{"engine":"bippy-1.2.0"}}}}