{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-63964",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2026-63964"
  ],
  "published": "2026-07-19T14:56:29Z",
  "summary": "usb: typec: ucsi: ccg: reject firmware images without a ':' record header",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nusb: typec: ucsi: ccg: reject firmware images without a ':' record header\n\ndo_flash() locates the first .cyacd record with\n\n\tp = strnchr(fw->data, fw->size, ':');\n\twhile (p < eof) {\n\t\ts = strnchr(p + 1, eof - p - 1, ':');\n\t\t...\n\t}\n\nIf the firmware image contains no ':' byte,  strnchr() returns NULL.\nNULL compares less than the valid kernel pointer eof, so the loop body\nruns and strnchr() is called with p + 1 == (void *)1 and a length of\nroughly (unsigned long)eof, causing a wonderful crash.\n\nThe not_signed_fw fallthrough earlier in do_flash() and the chip-state\nbranches in ccg_fw_update_needed() allow an unsigned blob to reach this\nloop, so a root user who can place a crafted file under /lib/firmware\nand write the do_flash sysfs attribute can trigger the oops.\n\nBail out with -EINVAL when the initial strnchr() returns NULL.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.176",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-63964"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b41dfc033fe594e152648050e95b9489cd53e9e3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/2f395ca1263bd181995eb829f5943a83a20db213"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6526f8684f72391138353642af908803ba70795e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3f432b8203066c26770fe6ea591361f10021dd6b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c4ee519b06389e59ba2d6aa722fcc4a02a8bbcbb"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a38ed87818b2419090fb1a6338ddce6842b65dfa"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c8460de584fe5415d212cfdd127d4db90835a450"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d7486952bf74e546ee3748fb14b2d07881fa6273"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-07-20T06:40:36Z"
  }
}
