{
  "id": "CVE-2026-64354",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-64354",
  "published_at": "2026-07-25T08:50:12.752Z",
  "title": "bpf: Validate BTF repeated field counts before expansion",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Validate BTF repeated field counts before expansion\n\nbtf_parse_struct_metas() walks user-supplied BTF during BPF_BTF_LOAD,\nand btf_repeat_fields() expands repeatable fields from array elements\ninto the fixed BTF_FIELDS_MAX scratch array used by btf_parse_fields().\n\nThe remaining-capacity check performs the expanded field count calculation\nin u32. A malformed BTF can wrap that calculation, causing the check to\npass even when the expanded field count exceeds the scratch array\ncapacity. The following memcpy() can then write past the end of the\narray.\n\nUse checked addition and multiplication before copying repeated fields\nand reject impossible counts.",
  "cwe": "CWE-190",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.12:-:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.12:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.12:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.12:rc6:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.12:rc7:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 797d73ee232dd1833dec4824bc53a22032e97c1c, \u003c c5ff816d5f13900c3f1f3298cfcc61339e056e56",
          "\u003e= 797d73ee232dd1833dec4824bc53a22032e97c1c, \u003c cd407de2ef5dc70f1970b343ffaa16186340fdfd",
          "\u003e= 797d73ee232dd1833dec4824bc53a22032e97c1c, \u003c ff77d013b737c0f77d925e2f2c59f0cf3d76bd35",
          "\u003e= 797d73ee232dd1833dec4824bc53a22032e97c1c, \u003c b9452b594fd3aecbfd4aa0a6a1f741330a37dab7",
          "6f957d972feee9b385ea3ae6530310a84e55ba71",
          "\u003e= 6.11.6, \u003c 6.12"
        ],
        "fixed_in": [
          "c5ff816d5f13900c3f1f3298cfcc61339e056e56",
          "cd407de2ef5dc70f1970b343ffaa16186340fdfd",
          "ff77d013b737c0f77d925e2f2c59f0cf3d76bd35",
          "b9452b594fd3aecbfd4aa0a6a1f741330a37dab7",
          "6.12"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.12"
        ],
        "fixed_in": [
          "0",
          "6.12.96",
          "6.18.39",
          "7.1.4",
          "7.2"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to c5ff816d5f13900c3f1f3298cfcc61339e056e56 or cd407de2ef5dc70f1970b343ffaa16186340fdfd or ff77d013b737c0f77d925e2f2c59f0cf3d76bd35 or b9452b594fd3aecbfd4aa0a6a1f741330a37dab7 or 6.12 or later.",
      "Upgrade Linux to 0 or 6.12.96 or 6.18.39 or 7.1.4 or 7.2 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
