{"id":"CVE-2026-98245","summary":"btrfs: take commit root semaphore when iterating in mark_block_group_to_copy()","details":"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-\u003eneed_commit_sem to protect the commit root search.","modified":"2026-10-07T02:47:30.154704988Z","published":"2026-10-06T08:45:14.758Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98245.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/0594e3423f4ba3137c734371169491f9a98e9af4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/709f6a5e986535005110c6c69b322f63631cb200"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8e2007b263ea250251ec3021a0a197da990ee1a8"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c32490c6d3f3a9f2d177d57c7eb8bbc347561d08"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98245.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98245"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"78ce9fc269af6e69c1399ab910ba6bc81c934f67"},{"fixed":"8e2007b263ea250251ec3021a0a197da990ee1a8"},{"fixed":"709f6a5e986535005110c6c69b322f63631cb200"},{"fixed":"c32490c6d3f3a9f2d177d57c7eb8bbc347561d08"},{"fixed":"0594e3423f4ba3137c734371169491f9a98e9af4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98245.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.12.0"},{"fixed":"6.12.112"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.54"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.2.8"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-98245.json"}}],"schema_version":"1.9.0"}