{"id":"CVE-2026-90197","state":"PUBLISHED","title":"HID: haptic: don't write an uninitialized value to unhandled usages","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: haptic: don't write an uninitialized value to unhandled usages\n\nfill_effect_buf() initializes value only for the four haptic usages\nhandled by its switch, but writes it to field->value[] for every usage.\nAn unhandled usage can therefore receive either an uninitialized value\nor one left over from the previous usage. hid_output_report() then\nserializes that value into the effect's report buffer.\n\nSkip unhandled usages instead. This also matches switch_mode(), which\nonly updates fields it recognizes.\n\nFound with Clang's -Wconditional-uninitialized.","publishedAt":"2026-09-17T16:07:16.281Z","updatedAt":"2026-10-19T08:59:33.533Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"344ff358495706abc7aac1e0c59a5bb16b350307","status":"affected","lessThan":"324cc98b71f0d3dee7367ef3c669fd80747e71b6","versionType":"git"},{"version":"344ff358495706abc7aac1e0c59a5bb16b350307","status":"affected","lessThan":"2d92c250815cba6bffd64f0125fac7afe4fa6ce0","versionType":"git"},{"version":"344ff358495706abc7aac1e0c59a5bb16b350307","status":"affected","lessThan":"3efb7f6491526f5012f9ec94769e9ed832feeef8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-haptic.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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-haptic.c"]}],"references":["https://git.kernel.org/stable/c/324cc98b71f0d3dee7367ef3c669fd80747e71b6","https://git.kernel.org/stable/c/2d92c250815cba6bffd64f0125fac7afe4fa6ce0","https://git.kernel.org/stable/c/3efb7f6491526f5012f9ec94769e9ed832feeef8"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90197.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90197","state":"PUBLISHED","datePublished":"2026-09-17T16:07:16.281Z","dateUpdated":"2026-10-19T08:59:33.533Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.792Z"},"containers":{"cna":{"title":"HID: haptic: don't write an uninitialized value to unhandled usages","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nHID: haptic: don't write an uninitialized value to unhandled usages\n\nfill_effect_buf() initializes value only for the four haptic usages\nhandled by its switch, but writes it to field->value[] for every usage.\nAn unhandled usage can therefore receive either an uninitialized value\nor one left over from the previous usage. hid_output_report() then\nserializes that value into the effect's report buffer.\n\nSkip unhandled usages instead. This also matches switch_mode(), which\nonly updates fields it recognizes.\n\nFound with Clang's -Wconditional-uninitialized."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"344ff358495706abc7aac1e0c59a5bb16b350307","status":"affected","lessThan":"324cc98b71f0d3dee7367ef3c669fd80747e71b6","versionType":"git"},{"version":"344ff358495706abc7aac1e0c59a5bb16b350307","status":"affected","lessThan":"2d92c250815cba6bffd64f0125fac7afe4fa6ce0","versionType":"git"},{"version":"344ff358495706abc7aac1e0c59a5bb16b350307","status":"affected","lessThan":"3efb7f6491526f5012f9ec94769e9ed832feeef8","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/hid/hid-haptic.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.18","versionType":"semver"},{"version":"6.18.52","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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-haptic.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/324cc98b71f0d3dee7367ef3c669fd80747e71b6"},{"url":"https://git.kernel.org/stable/c/2d92c250815cba6bffd64f0125fac7afe4fa6ce0"},{"url":"https://git.kernel.org/stable/c/3efb7f6491526f5012f9ec94769e9ed832feeef8"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:59:33.533Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"6.18.52"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.18","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}