CVE-2026-64354 (GCVE-0-2026-64354)
Vulnerability from cvelistv5
Published
2026-07-25 08:50
Modified
2026-08-17 04:54
Summary
In the Linux kernel, the following vulnerability has been resolved: bpf: Validate BTF repeated field counts before expansion btf_parse_struct_metas() walks user-supplied BTF during BPF_BTF_LOAD, and btf_repeat_fields() expands repeatable fields from array elements into the fixed BTF_FIELDS_MAX scratch array used by btf_parse_fields(). The remaining-capacity check performs the expanded field count calculation in u32. A malformed BTF can wrap that calculation, causing the check to pass even when the expanded field count exceeds the scratch array capacity. The following memcpy() can then write past the end of the array. Use checked addition and multiplication before copying repeated fields and reject impossible counts.
Impacted products
Vendor Product Version
Linux Linux Version: 797d73ee232dd1833dec4824bc53a22032e97c1c
Version: 797d73ee232dd1833dec4824bc53a22032e97c1c
Version: 797d73ee232dd1833dec4824bc53a22032e97c1c
Version: 797d73ee232dd1833dec4824bc53a22032e97c1c
Version: 6f957d972feee9b385ea3ae6530310a84e55ba71
Version: 6.11.6   
Create a notification for this product.
Show details on NVD website


{
  "containers": {
    "cna": {
      "affected": [
        {
          "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": "c5ff816d5f13900c3f1f3298cfcc61339e056e56",
              "status": "affected",
              "version": "797d73ee232dd1833dec4824bc53a22032e97c1c",
              "versionType": "git"
            },
            {
              "lessThan": "cd407de2ef5dc70f1970b343ffaa16186340fdfd",
              "status": "affected",
              "version": "797d73ee232dd1833dec4824bc53a22032e97c1c",
              "versionType": "git"
            },
            {
              "lessThan": "ff77d013b737c0f77d925e2f2c59f0cf3d76bd35",
              "status": "affected",
              "version": "797d73ee232dd1833dec4824bc53a22032e97c1c",
              "versionType": "git"
            },
            {
              "lessThan": "b9452b594fd3aecbfd4aa0a6a1f741330a37dab7",
              "status": "affected",
              "version": "797d73ee232dd1833dec4824bc53a22032e97c1c",
              "versionType": "git"
            },
            {
              "status": "affected",
              "version": "6f957d972feee9b385ea3ae6530310a84e55ba71",
              "versionType": "git"
            },
            {
              "lessThan": "6.12",
              "status": "affected",
              "version": "6.11.6",
              "versionType": "semver"
            }
          ]
        },
        {
          "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": "6.12"
            },
            {
              "lessThan": "6.12",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.12.*",
              "status": "unaffected",
              "version": "6.12.96",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.18.*",
              "status": "unaffected",
              "version": "6.18.39",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "7.1.*",
              "status": "unaffected",
              "version": "7.1.4",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "7.2",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.12.96",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.18.39",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.1.4",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "7.2",
                  "versionStartIncluding": "6.12",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionStartIncluding": "6.11.6",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 7.8,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:L - The attacker reaches the vulnerable parser through the local bpf(BPF_BTF_LOAD) syscall; no network or physical path exists.\nAC:L - A compact, deterministic malformed BTF object triggers the arithmetic wrap and immediate out-of-bounds memcpy without a race or uncontrollable condition.\nPR:L - BPF_BTF_LOAD normally requires init-namespace CAP_BPF, but a delegated BPF token permits CAP_BPF in its user namespace. Thus a namespace-root attacker in a reasonably delegated container environment can reach it with low privileges.\nUI:N - The attacker invokes BPF_BTF_LOAD directly and requires no action from another user.\nS:U - The corruption occurs within the host kernel\u0027s security authority; resulting privilege escalation or container escape is standard kernel compromise rather than a CVSS scope change.\nC:H - The attacker-influenced kernel-stack overflow can corrupt control data and plausibly enable kernel code execution, which would expose arbitrary kernel memory.\nI:H - The vulnerable memcpy performs a large out-of-bounds kernel-stack write using attacker-influenced metadata records, making control-flow corruption and arbitrary kernel modification defensible.\nA:H - The expansion repeatedly overwrites beyond the stack array until it reaches control data, a guard page, or adjacent kernel memory, allowing a deterministic kernel oops, panic, or severe corruption."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-17T04:54:00.068Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/c5ff816d5f13900c3f1f3298cfcc61339e056e56"
        },
        {
          "url": "https://git.kernel.org/stable/c/cd407de2ef5dc70f1970b343ffaa16186340fdfd"
        },
        {
          "url": "https://git.kernel.org/stable/c/ff77d013b737c0f77d925e2f2c59f0cf3d76bd35"
        },
        {
          "url": "https://git.kernel.org/stable/c/b9452b594fd3aecbfd4aa0a6a1f741330a37dab7"
        }
      ],
      "title": "bpf: Validate BTF repeated field counts before expansion",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2026-64354",
    "datePublished": "2026-07-25T08:50:12.752Z",
    "dateReserved": "2026-07-19T15:36:31.782Z",
    "dateUpdated": "2026-08-17T04:54:00.068Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.


Loading…

Loading…