{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "21e61ec6d0bb786818490e926aa9aeb4de95ad0d"
            },
            {
              "fixed": "d327f5adaf1af9cb399f988570f57e784481863d"
            },
            {
              "fixed": "1c1b485bf2a79180e41204ac93b73f4731bb3557"
            },
            {
              "fixed": "c8b32df27f50d28e3ef2601e0ef578e47dc72e12"
            },
            {
              "fixed": "8c66a6aa59a5df1d672d72b7cd379d897ff73200"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "ad88cabcec942c033f980cd1e28d56ecdaf5f3b8"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.0.9"
            },
            {
              "fixed": "6.1"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.1.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-143378.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbtrfs: zoned: fix double free of bitmaps on clone failure\n\nbtrfs_clone_dev_zone_info() duplicates the original orig_dev-\u003ezone_info\nwith kmemdup(), which also copies the seq_zones, empty_zones and\nactive_zones pointers. The clone then replaces them one by one with\nfresh bitmaps. If one of the allocations fails, the error path frees all\nthree pointers, including those not yet replaced, which still point to\nthe bitmaps owned by the original device.\n\nClear the three pointers right after kmemdup() so the error path only frees\nwhat this function allocated.",
  "id": "CVE-2026-143378",
  "modified": "2026-12-03T10:45:36.557398695Z",
  "published": "2026-12-03T09:22:25.806Z",
  "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/1c1b485bf2a79180e41204ac93b73f4731bb3557"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/8c66a6aa59a5df1d672d72b7cd379d897ff73200"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c8b32df27f50d28e3ef2601e0ef578e47dc72e12"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/d327f5adaf1af9cb399f988570f57e784481863d"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143378.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-143378"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "btrfs: zoned: fix double free of bitmaps on clone failure"
}