Use-after-free in Linux kernel btrfs mark_block_group_to_copy()
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Partial Red Hat: 1 without a fix
No CVSS vector from any source. Fix status from CNA and Red Hat.
Summary
The Linux kernel btrfs code in mark_block_group_to_copy() iterates over the commit root without holding the commit root semaphore. A concurrent transaction commit can swap and free the commit root during that iteration, causing a use-after-free when extent buffers are accessed. Affected versions run from 5.12 before the fixed releases listed in the solution.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Upgrade the Linux kernel to 5.15.224, 6.1.191, 6.6.160, 6.12.112, 6.18.54, 7.2.8 or 7.3. Red Hat lists Red Hat Enterprise Linux 10 as affected without a fix and with no available plan.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
- Fix · CNA Linux (Linux) Fixed in 5.15.224, 6.1.191, 6.6.160, 6.12.112, 6.18.54, 7.2.8, 7.3
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 10 | Affected | No fix yet: Fix deferred |
Not affected: 6 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat OpenShift Container Platform 4
- Red Hat OpenShift Container Platform 5
Timeline
- 2026-10-06 Threatist record created from CVE-2026-98245
- 2026-10-06 Alias added: GHSA-crm6-8p5c-4rv5
- 2026-10-11 Affected versions changed · Red Hat
- 2026-10-11 CVSS score added · Red Hat
- 2026-10-19 Fix available: Linux/[email protected] · CNA
- 2026-10-21 Fix available: Linux/[email protected], Linux/Linux@93a025166495c63ba5b8ac721c7040d5312e8335 · CNA
- 2026-10-21 1 new reference · CNA
- 2026-10-23 Affected versions changed · Red Hat
- 2026-10-23 CVSS score changed · Red Hat
- 2026-10-30 Fix available: Linux/[email protected], Linux/[email protected], Linux/Linux@90242b776df83f8b1ea901f80b568b4fc2318c61 +1 · CNA
- 2026-10-30 2 new references · CNA
- 2026-11-06 Affected versions changed · Red Hat
References
Other 7
- https://git.kernel.org/stable/c/90242b776df83f8b1ea901f80b568b4fc2318c61
- https://git.kernel.org/stable/c/bffe773f92885603db14047bba0f12089105929e
- https://git.kernel.org/stable/c/93a025166495c63ba5b8ac721c7040d5312e8335
- https://git.kernel.org/stable/c/8e2007b263ea250251ec3021a0a197da990ee1a8
- https://git.kernel.org/stable/c/709f6a5e986535005110c6c69b322f63631cb200
- https://git.kernel.org/stable/c/c32490c6d3f3a9f2d177d57c7eb8bbc347561d08
- https://git.kernel.org/stable/c/0594e3423f4ba3137c734371169491f9a98e9af4
More Linux vulnerabilities
- TI-2025-26358 tls: fix handling of zero-length records on the rx_list KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 netfilter: bridge: make ebt_snat ARP rewrite writable KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Incorrect authorization in Ubuntu linux kernel KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the… KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Integer overflow in kernel KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9… KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-98245 · CVE Program
- CVE-2026-98245 · NVD
- FIRST EPSS
- GHSA-crm6-8p5c-4rv5 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-98245 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences