HID: haptic: don't write an uninitialized value to unhandled usages
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 2d92c250815cba6bffd64f0125fac7afe4fa6ce0, Kernel 324cc98b71f0d3dee7367ef3c669fd80747e71b6 and Kernel 3efb7f6491526f5012f9ec94769e9ed832feeef8.
In the Linux kernel, the following vulnerability has been resolved: HID: haptic: don't write an uninitialized value to unhandled usages fill_effect_buf() initializes value only for the four haptic usages handled by its switch, but writes it to field->value[] for every usage. An unhandled usage can therefore receive either an uninitialized value or one left over from the previous usage. hid_output_report() then serializes that value into the effect's report buffer. Skip unhandled usages instead. This also matches switch_mode(), which only updates fields it recognizes. Found with Clang's -Wconditional-uninitialized.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.18, >=344ff358495706abc7aac1e0c59a5bb16b350307 <2d92c250815cba6bffd64f0125fac7afe4fa6ce0, >=344ff358495706abc7aac1e0c59a5bb16b350307 <324cc98b71f0d3dee7367ef3c669fd80747e71b6, >=344ff358495706abc7aac1e0c59a5bb16b350307 <3efb7f6491526f5012f9ec94769e9ed832feeef8 | 2d92c250815cba6bffd64f0125fac7afe4fa6ce0, 324cc98b71f0d3dee7367ef3c669fd80747e71b6, 3efb7f6491526f5012f9ec94769e9ed832feeef8 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket