{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "951bb64621b8139c0cd99dcadc13e6510c08aa73"
            },
            {
              "fixed": "0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff"
            },
            {
              "fixed": "a2f2f3b32dca430bffc033ac06cc97cba551c171"
            },
            {
              "fixed": "5dd99faf54c2b874b72f6c452c4da8e462b4f9f6"
            },
            {
              "fixed": "e6583935e3bf07e2a75af622d675afc20e3ddb59"
            },
            {
              "fixed": "2752532f5f9a292457a31090a62334f5ef40e0b4"
            },
            {
              "fixed": "edf4ae4ba4e7fabc1003c66aacaad2529769573f"
            },
            {
              "fixed": "6c476d2b73056ed151c3f8b884c627c75999ed7c"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142893.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Fix out-of-bounds btf-\u003etypes write for split BTF\n\nbtf_add_type() stores the types of a BTF in btf-\u003etypes[], which can hold at\nmost BTF_MAX_TYPE entries.  The types of a split BTF get IDs start_id ..\nstart_id + nr_types - 1, so only BTF_MAX_TYPE - start_id of them fit, but\nneither the limit check nor the size used to grow the array accounts for\nstart_id: the check is an equality test against BTF_MAX_TYPE\n('start_id + btf-\u003etypes_size == BTF_MAX_TYPE') and the new size is clamped\nto BTF_MAX_TYPE.\n\nThe check therefore only fires if the array happens to grow to exactly\nBTF_MAX_TYPE - start_id entries.  Otherwise, if the module has more than\nBTF_MAX_TYPE types, the array is filled up to BTF_MAX_TYPE entries.  The\nnext type that needs to be added reallocates the array to the same size,\nafter which btf-\u003etypes_size no longer equals btf-\u003enr_types and the growth\npath is not taken anymore, so every following type is written past the end\nof the array:\n\n  BUG: unable to handle page fault for address: ffffc90006200000\n  RIP: 0010:btf_add_type+0x74/0x270\n  Call Trace:\n   btf_check_all_metas\n   btf_parse_module\n\nBound both the array size and the limit check by BTF_MAX_TYPE - start_id.\nBase BTF (start_id == 0) is unaffected.",
  "id": "CVE-2026-142893",
  "modified": "2026-12-03T04:45:57.001269518Z",
  "published": "2026-12-03T03:25:44.711Z",
  "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/0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/2752532f5f9a292457a31090a62334f5ef40e0b4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5dd99faf54c2b874b72f6c452c4da8e462b4f9f6"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6c476d2b73056ed151c3f8b884c627c75999ed7c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a2f2f3b32dca430bffc033ac06cc97cba551c171"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/e6583935e3bf07e2a75af622d675afc20e3ddb59"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/edf4ae4ba4e7fabc1003c66aacaad2529769573f"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142893.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142893"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "bpf: Fix out-of-bounds btf-\u003etypes write for split BTF"
}