{"id":"CVE-2026-99331","state":"PUBLISHED","title":"HID: cp2112: validate response report lengths","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: cp2112: validate response report lengths\n\nThe HID core invokes raw_event callbacks before validating the report\nlength.  cp2112_raw_event() reads every field of a transfer status response\nwithout checking size.  For a data response, it reads the length at offset\ntwo and copies that many bytes from offset three, again without ensuring\nthat the input report contains them.\n\nRequire a complete transfer status structure.  For data responses, first\nrequire the header and then ensure the clamped payload length fits in the\nreceived report before copying it.\n\nCommit 47669bec44fe (\"HID: asus: refactor the two workqueues and init\nsequence\") added the same kind of raw_event length validation to hid-asus.","publishedAt":"2026-11-19T14:21:38.080Z","updatedAt":"2026-11-19T14:33:57.001Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e932d817866770d456815c9a84b7ed94f0589d80","status":"affected","lessThan":"e178cdd6ed0f4ac20afc9220eceae3a89e6719af","versionType":"git"},{"version":"e932d817866770d456815c9a84b7ed94f0589d80","status":"affected","lessThan":"94d0e789d8b0d2ea8e25ed5ff2fe2648e11f2297","versionType":"git"},{"version":"e932d817866770d456815c9a84b7ed94f0589d80","status":"affected","lessThan":"773307dd4c3e8c27eb31650af2df2d91cba22de8","versionType":"git"},{"version":"e932d817866770d456815c9a84b7ed94f0589d80","status":"affected","lessThan":"fc54e71a063c0dcc4bceba6d0f71805a9b84082d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-cp2112.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.15","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-cp2112.c"]}],"references":["https://git.kernel.org/stable/c/e178cdd6ed0f4ac20afc9220eceae3a89e6719af","https://git.kernel.org/stable/c/94d0e789d8b0d2ea8e25ed5ff2fe2648e11f2297","https://git.kernel.org/stable/c/773307dd4c3e8c27eb31650af2df2d91cba22de8","https://git.kernel.org/stable/c/fc54e71a063c0dcc4bceba6d0f71805a9b84082d"],"weaknesses":[],"ingestedAt":"2026-11-19T14:38:06.214Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/99xxx/CVE-2026-99331.json","commit":"665e7bc62c2b8351d76e7013884573dd8b3fd168","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-99331","state":"PUBLISHED","datePublished":"2026-11-19T14:21:38.080Z","dateUpdated":"2026-11-19T14:33:57.001Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-25T10:25:14.408Z"},"containers":{"cna":{"title":"HID: cp2112: validate response report lengths","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: cp2112: validate response report lengths\n\nThe HID core invokes raw_event callbacks before validating the report\nlength.  cp2112_raw_event() reads every field of a transfer status response\nwithout checking size.  For a data response, it reads the length at offset\ntwo and copies that many bytes from offset three, again without ensuring\nthat the input report contains them.\n\nRequire a complete transfer status structure.  For data responses, first\nrequire the header and then ensure the clamped payload length fits in the\nreceived report before copying it.\n\nCommit 47669bec44fe (\"HID: asus: refactor the two workqueues and init\nsequence\") added the same kind of raw_event length validation to hid-asus."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"e932d817866770d456815c9a84b7ed94f0589d80","status":"affected","lessThan":"e178cdd6ed0f4ac20afc9220eceae3a89e6719af","versionType":"git"},{"version":"e932d817866770d456815c9a84b7ed94f0589d80","status":"affected","lessThan":"94d0e789d8b0d2ea8e25ed5ff2fe2648e11f2297","versionType":"git"},{"version":"e932d817866770d456815c9a84b7ed94f0589d80","status":"affected","lessThan":"773307dd4c3e8c27eb31650af2df2d91cba22de8","versionType":"git"},{"version":"e932d817866770d456815c9a84b7ed94f0589d80","status":"affected","lessThan":"fc54e71a063c0dcc4bceba6d0f71805a9b84082d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-cp2112.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.15","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.61","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.2","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-cp2112.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e178cdd6ed0f4ac20afc9220eceae3a89e6719af"},{"url":"https://git.kernel.org/stable/c/94d0e789d8b0d2ea8e25ed5ff2fe2648e11f2297"},{"url":"https://git.kernel.org/stable/c/773307dd4c3e8c27eb31650af2df2d91cba22de8"},{"url":"https://git.kernel.org/stable/c/fc54e71a063c0dcc4bceba6d0f71805a9b84082d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-19T14:33:57.001Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"6.18.61"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"7.3.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.15","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}