CVE-2026-98245
Linux: btrfs: take commit root semaphore when iterating in mark_block_group_to_copy()
CVSS
NoneNot scoredExploitationNo known exploitationNot in CISA KEV, which does not prove it is unexploitedCISA KEV
Exploit odds (EPSS)0.17%Chance of exploitation activity in the next 30 days, higher than 5% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in93a025166495c63ba5b8ac721c7040d5312e8335Also 8e2007b263ea250251ec3021a0a197da990ee1a8, 709f6a5e986535005110c6c69b322f63631cb200 and 1 moreCVE List
What fixes it
- 93a025166495c63ba5b8ac721c7040d5312e8335LinuxCVE List
- 8e2007b263ea250251ec3021a0a197da990ee1a8LinuxCVE List
- 709f6a5e986535005110c6c69b322f63631cb200LinuxCVE List
- 0594e3423f4ba3137c734371169491f9a98e9af4LinuxCVE List
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
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.
Text from CVE List
Affected versions 12
- Linuxaffected: 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 93a025166495c63ba5b8ac721c7040d5312e8335CVE List
- Linuxaffected: 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 8e2007b263ea250251ec3021a0a197da990ee1a8CVE List
- Linuxaffected: 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 709f6a5e986535005110c6c69b322f63631cb200CVE List
- Linuxaffected: 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before c32490c6d3f3a9f2d177d57c7eb8bbc347561d08CVE List
- Linuxaffected: 78ce9fc269af6e69c1399ab910ba6bc81c934f67 before 0594e3423f4ba3137c734371169491f9a98e9af4CVE List
- Linuxaffected: 5.12CVE List
- Linuxunaffected: all versions before 5.12CVE List
- Linuxunaffected: 6.6.160 through 6.6.*CVE List
- Linuxunaffected: 6.12.112 through 6.12.*CVE List
- Linuxunaffected: 6.18.54 through 6.18.*CVE List
- Linuxunaffected: 7.2.8 through 7.2.*CVE List
- Linuxunaffected: 7.3CVE List
References 5
- git.kernel.org/stable/c/93a025166495c63ba5b8ac721c7040d5312e8335Referencevia CVE List
- git.kernel.org/stable/c/8e2007b263ea250251ec3021a0a197da990ee1a8Referencevia CVE List
- git.kernel.org/stable/c/709f6a5e986535005110c6c69b322f63631cb200Referencevia CVE List
- git.kernel.org/stable/c/c32490c6d3f3a9f2d177d57c7eb8bbc347561d08Referencevia CVE List
- git.kernel.org/stable/c/0594e3423f4ba3137c734371169491f9a98e9af4Referencevia CVE List