{"id":"CVE-2026-63964","aliases":["CVE-2026-63964"],"related":[],"kind":"vulnerability","state":"published","title":"usb: typec: ucsi: ccg: reject firmware images without a ':' record header","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-07-19T14:55:53.115Z","modified":"2026-10-30T17:29:01.400Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"5c9ae5a87573d38cfc4c740aafda2fa6ce06e401","fixed":"b41dfc033fe594e152648050e95b9489cd53e9e3","status":"affected"},{"type":"git","introduced":"5c9ae5a87573d38cfc4c740aafda2fa6ce06e401","fixed":"2f395ca1263bd181995eb829f5943a83a20db213","status":"affected"},{"type":"git","introduced":"5c9ae5a87573d38cfc4c740aafda2fa6ce06e401","fixed":"6526f8684f72391138353642af908803ba70795e","status":"affected"},{"type":"git","introduced":"5c9ae5a87573d38cfc4c740aafda2fa6ce06e401","fixed":"3f432b8203066c26770fe6ea591361f10021dd6b","status":"affected"},{"type":"git","introduced":"5c9ae5a87573d38cfc4c740aafda2fa6ce06e401","fixed":"c4ee519b06389e59ba2d6aa722fcc4a02a8bbcbb","status":"affected"},{"type":"git","introduced":"5c9ae5a87573d38cfc4c740aafda2fa6ce06e401","fixed":"a38ed87818b2419090fb1a6338ddce6842b65dfa","status":"affected"},{"type":"git","introduced":"5c9ae5a87573d38cfc4c740aafda2fa6ce06e401","fixed":"c8460de584fe5415d212cfdd127d4db90835a450","status":"affected"},{"type":"git","introduced":"5c9ae5a87573d38cfc4c740aafda2fa6ce06e401","fixed":"d7486952bf74e546ee3748fb14b2d07881fa6273","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.2","status":"unaffected"},{"type":"semver","introduced":"5.10.259","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.210","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.176","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.143","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.93","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.35","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.12","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.2","fixed":"5.10.259"},{"status":"affected","introduced":"5.11","fixed":"5.15.210"},{"status":"affected","introduced":"5.16","fixed":"6.1.176"},{"status":"affected","introduced":"6.2","fixed":"6.6.143"},{"status":"affected","introduced":"6.7","fixed":"6.12.93"},{"status":"affected","introduced":"6.13","fixed":"6.18.35"},{"status":"affected","introduced":"6.19","fixed":"7.0.12"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/b41dfc033fe594e152648050e95b9489cd53e9e3","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2f395ca1263bd181995eb829f5943a83a20db213","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6526f8684f72391138353642af908803ba70795e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f432b8203066c26770fe6ea591361f10021dd6b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4ee519b06389e59ba2d6aa722fcc4a02a8bbcbb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a38ed87818b2419090fb1a6338ddce6842b65dfa","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c8460de584fe5415d212cfdd127d4db90835a450","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d7486952bf74e546ee3748fb14b2d07881fa6273","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-63964","url":"https://www.cve.org/CVERecord?id=CVE-2026-63964","licence":"CVE Terms of Use","modified":"2026-07-20T06:41:45.132Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-63964","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-63964","licence":"Public domain","modified":"2026-10-30T17:29:01.400Z"}],"updatedAt":"2026-11-25T22:59:28.871Z","epss":{"score":0.0016,"percentile":0.05408,"date":"2026-12-01T12:00:22.000Z"}}