CVE-2026-98245

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

No CVSS score yet EPSS 0.22%

Published 6 Oct 2026 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2026-98245

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-98245 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.22%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 6.77% of all scored CVEs. Scores of 29 Nov 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 78ce9fc269af6e69c1399ab910ba6bc81c934f67, before 90242b776df83f8b1ea901f80b568b4fc2318c61
affected from 78ce9fc269af6e69c1399ab910ba6bc81c934f67, before bffe773f92885603db14047bba0f12089105929e
affected from 78ce9fc269af6e69c1399ab910ba6bc81c934f67, before 93a025166495c63ba5b8ac721c7040d5312e8335
affected from 78ce9fc269af6e69c1399ab910ba6bc81c934f67, before 8e2007b263ea250251ec3021a0a197da990ee1a8
affected from 78ce9fc269af6e69c1399ab910ba6bc81c934f67, before 709f6a5e986535005110c6c69b322f63631cb200
affected from 78ce9fc269af6e69c1399ab910ba6bc81c934f67, before c32490c6d3f3a9f2d177d57c7eb8bbc347561d08
affected from 78ce9fc269af6e69c1399ab910ba6bc81c934f67, before 0594e3423f4ba3137c734371169491f9a98e9af4
Other versions: unaffected
Linux
affected 5.12
unaffected before 5.12
unaffected from 5.15.224 up to and including 5.15.*
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.160 up to and including 6.6.*
unaffected from 6.12.112 up to and including 6.12.*
unaffected from 6.18.54 up to and including 6.18.*
unaffected from 7.2.8 up to and including 7.2.*
unaffected 7.3 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-98245 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-98245

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2026-98245
trivy image --scanners vuln IMAGE | grep CVE-2026-98245

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2026-98245 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.