FKIE_CVE-2026-142893

Vulnerability from fkie_nvd - Published: 2026-12-03 04:18 - Updated: 2026-12-03 04:18
Severity
Summary
In the Linux kernel, the following vulnerability has been resolved: bpf: Fix out-of-bounds btf->types write for split BTF btf_add_type() stores the types of a BTF in btf->types[], which can hold at most BTF_MAX_TYPE entries. The types of a split BTF get IDs start_id .. start_id + nr_types - 1, so only BTF_MAX_TYPE - start_id of them fit, but neither the limit check nor the size used to grow the array accounts for start_id: the check is an equality test against BTF_MAX_TYPE ('start_id + btf->types_size == BTF_MAX_TYPE') and the new size is clamped to BTF_MAX_TYPE. The check therefore only fires if the array happens to grow to exactly BTF_MAX_TYPE - start_id entries. Otherwise, if the module has more than BTF_MAX_TYPE types, the array is filled up to BTF_MAX_TYPE entries. The next type that needs to be added reallocates the array to the same size, after which btf->types_size no longer equals btf->nr_types and the growth path is not taken anymore, so every following type is written past the end of the array: BUG: unable to handle page fault for address: ffffc90006200000 RIP: 0010:btf_add_type+0x74/0x270 Call Trace: btf_check_all_metas btf_parse_module Bound both the array size and the limit check by BTF_MAX_TYPE - start_id. Base BTF (start_id == 0) is unaffected.
Impacted products
Vendor Product Version

{
  "affected": [
    {
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "kernel/bpf/btf.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff",
              "status": "affected",
              "version": "951bb64621b8139c0cd99dcadc13e6510c08aa73",
              "versionType": "git"
            },
            {
              "lessThan": "a2f2f3b32dca430bffc033ac06cc97cba551c171",
              "status": "affected",
              "version": "951bb64621b8139c0cd99dcadc13e6510c08aa73",
              "versionType": "git"
            },
            {
              "lessThan": "5dd99faf54c2b874b72f6c452c4da8e462b4f9f6",
              "status": "affected",
              "version": "951bb64621b8139c0cd99dcadc13e6510c08aa73",
              "versionType": "git"
            },
            {
              "lessThan": "e6583935e3bf07e2a75af622d675afc20e3ddb59",
              "status": "affected",
              "version": "951bb64621b8139c0cd99dcadc13e6510c08aa73",
              "versionType": "git"
            },
            {
              "lessThan": "2752532f5f9a292457a31090a62334f5ef40e0b4",
              "status": "affected",
              "version": "951bb64621b8139c0cd99dcadc13e6510c08aa73",
              "versionType": "git"
            },
            {
              "lessThan": "edf4ae4ba4e7fabc1003c66aacaad2529769573f",
              "status": "affected",
              "version": "951bb64621b8139c0cd99dcadc13e6510c08aa73",
              "versionType": "git"
            },
            {
              "lessThan": "6c476d2b73056ed151c3f8b884c627c75999ed7c",
              "status": "affected",
              "version": "951bb64621b8139c0cd99dcadc13e6510c08aa73",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "kernel/bpf/btf.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "5.11"
            },
            {
              "lessThan": "5.11",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "5.15.*",
              "status": "unaffected",
              "version": "5.15.226",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.193",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.163",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.119",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.65",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.3.*",
              "status": "unaffected",
              "version": "7.3.6",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.4-rc1",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67"
    }
  ],
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "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(\u0027start_id + btf-\u003etypes_size == BTF_MAX_TYPE\u0027) 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",
  "lastModified": "2026-12-03T04:18:28.373",
  "metrics": {},
  "published": "2026-12-03T04:18:28.373",
  "references": [
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/0c94c0a9ee19a3a1ca46e5c9a2e9a4900278c0ff"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/2752532f5f9a292457a31090a62334f5ef40e0b4"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/5dd99faf54c2b874b72f6c452c4da8e462b4f9f6"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/6c476d2b73056ed151c3f8b884c627c75999ed7c"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/a2f2f3b32dca430bffc033ac06cc97cba551c171"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/e6583935e3bf07e2a75af622d675afc20e3ddb59"
    },
    {
      "source": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "url": "https://git.kernel.org/stable/c/edf4ae4ba4e7fabc1003c66aacaad2529769573f"
    }
  ],
  "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
  "vulnStatus": "Received"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.