{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "78ce9fc269af6e69c1399ab910ba6bc81c934f67"
            },
            {
              "fixed": "8e2007b263ea250251ec3021a0a197da990ee1a8"
            },
            {
              "fixed": "709f6a5e986535005110c6c69b322f63631cb200"
            },
            {
              "fixed": "c32490c6d3f3a9f2d177d57c7eb8bbc347561d08"
            },
            {
              "fixed": "0594e3423f4ba3137c734371169491f9a98e9af4"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/98xxx/CVE-2026-98245.json"
  },
  "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.",
  "id": "CVE-2026-98245",
  "modified": "2026-10-08T02:30:49.135230362Z",
  "published": "2026-10-06T08:45:14.758Z",
  "references": [
    {
      "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"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.9.0",
  "summary": "btrfs: take commit root semaphore when iterating in mark_block_group_to_copy()"
}