{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "393f646e34c18b85d0f41272bfcbd475ae3a0d34"
            },
            {
              "fixed": "d87f8bd1c92559fbd945ba7a202d0013c6436372"
            },
            {
              "fixed": "b9d98dbc30312db7eeb77f4ed46af9573f17bc93"
            },
            {
              "fixed": "bd1e6c8aacf49c9198ebe0664cc292052e597a43"
            },
            {
              "fixed": "bcad7df05237382237ad1517411721d839174009"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "8be240190e01934b2f2009a73b2967cc7f0c6344"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "f6ad412c647ac32e3ed2750b99c87c119daea9bb"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.18.18"
            },
            {
              "fixed": "5.19"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.19.2"
            },
            {
              "fixed": "5.20"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.0.0"
            },
            {
              "fixed": "6.12.120"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.66"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.7"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143241.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: zoned: don't wait for ordered extents in do_zone_finish()\n\ndo_zone_finish() calls btrfs_wait_ordered_roots(), which holds\nfs_info-\u003eordered_operations_mutex while waiting for writeback. It can be\nreached from writeback itself:\n\n  cow_file_range()\n  `-\u003e btrfs_reserve_extent()\n    `-\u003e find_free_extent()\n      `-\u003e btrfs_zone_finish_one_bg()\n        `-\u003e do_zone_finish()\n\nIf another task holds the mutex and waits for that writeback, this\ndeadlocks.\n\nIn general, we want to ensure all writes in the block group to\ncomplete before finishing the zone, as relocation does. However, the\ncurrent callers do not need the wait (or cannot wait) in do_zone_finish():\n\n- Relocation already waits for reservations and ordered extents itself\n  before calling btrfs_zone_finish().\n- btrfs_delete_unused_bgs() checks that -\u003ereserved is zero and sets the\n  block group read-only while holding groups_sem, so there can be no\n  in-flight data write.\n- btrfs_zone_finish_one_bg() is called from the allocation path and\n  cannot wait.\n\nDropping the wait is still safe. Once the block group is read-only,\n-\u003ereserved can only drop, and for data it only drops after the ordered\nextent's I/O has completed. So if -\u003ereserved is zero, no data write is\nleft in flight. If it is non-zero, do_zone_finish() returns -EAGAIN,\nwhich all callers handle.\n\nThis makes btrfs_zone_finish_one_bg() fail with -EAGAIN when it races\nwith an allocation in the selected block group.",
  "id": "CVE-2026-143241",
  "modified": "2026-12-03T10:46:08.708955640Z",
  "published": "2026-12-03T09:20:53.703Z",
  "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/b9d98dbc30312db7eeb77f4ed46af9573f17bc93"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bcad7df05237382237ad1517411721d839174009"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/bd1e6c8aacf49c9198ebe0664cc292052e597a43"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d87f8bd1c92559fbd945ba7a202d0013c6436372"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143241.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143241"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "btrfs: zoned: don't wait for ordered extents in do_zone_finish()"
}