{"id":"CVE-2026-98245","aliases":["CVE-2026-98245"],"related":[],"kind":"vulnerability","state":"published","title":"btrfs: take commit root semaphore when iterating in mark_block_group_to_copy()","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-10-06T08:45:14.758Z","modified":"2026-10-30T13:21:12.203Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","fixed":"90242b776df83f8b1ea901f80b568b4fc2318c61","status":"affected"},{"type":"git","introduced":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","fixed":"bffe773f92885603db14047bba0f12089105929e","status":"affected"},{"type":"git","introduced":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","fixed":"93a025166495c63ba5b8ac721c7040d5312e8335","status":"affected"},{"type":"git","introduced":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","fixed":"8e2007b263ea250251ec3021a0a197da990ee1a8","status":"affected"},{"type":"git","introduced":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","fixed":"709f6a5e986535005110c6c69b322f63631cb200","status":"affected"},{"type":"git","introduced":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","fixed":"c32490c6d3f3a9f2d177d57c7eb8bbc347561d08","status":"affected"},{"type":"git","introduced":"78ce9fc269af6e69c1399ab910ba6bc81c934f67","fixed":"0594e3423f4ba3137c734371169491f9a98e9af4","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.12","status":"unaffected"},{"type":"semver","introduced":"5.15.224","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.191","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.54","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.8","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/90242b776df83f8b1ea901f80b568b4fc2318c61","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bffe773f92885603db14047bba0f12089105929e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/93a025166495c63ba5b8ac721c7040d5312e8335","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/8e2007b263ea250251ec3021a0a197da990ee1a8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/709f6a5e986535005110c6c69b322f63631cb200","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c32490c6d3f3a9f2d177d57c7eb8bbc347561d08","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0594e3423f4ba3137c734371169491f9a98e9af4","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98245","url":"https://www.cve.org/CVERecord?id=CVE-2026-98245","licence":"CVE Terms of Use","modified":"2026-10-30T12:37:57.233Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98245","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98245","licence":"Public domain","modified":"2026-10-30T13:21:12.203Z"}],"updatedAt":"2026-11-25T22:59:42.301Z","epss":{"score":0.00215,"percentile":0.06795,"date":"2026-11-30T12:00:22.000Z"}}