{"id":11973,"date":"2026-09-04T18:54:00","date_gmt":"2026-09-04T10:54:00","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-80575"},"modified":"2026-09-04T18:54:00","modified_gmt":"2026-09-04T10:54:00","slug":"cve-2026-80575","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-80575","title":{"rendered":"CVE-2026-80575 [HIGH] &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nInput: cs40l50-vibra"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>Input: cs40l50-vibra &#8211; validate custom data from user space<\/p>\n<p>cs40l50_add() copies the custom data of an FF_PERIODIC\/FF_CUSTOM effect<br \/>\nstraight from the ff_effect the user passed to EVIOCSFF, without<br \/>\nrequiring it to hold anything:<\/p>\n<p>    work_data.custom_data = memdup_array_user(periodic-&gt;custom_data,<br \/>\n                                              periodic-&gt;custom_len,<br \/>\n                                              sizeof(s16));<br \/>\n    work_data.custom_len = periodic-&gt;custom_len;<\/p>\n<p>The driver then reads two words out of that buffer: custom_data[0] as the<br \/>\nwaveform bank in cs40l50_effect_bank_set(), and custom_data[1] as the<br \/>\nindex within the bank in cs40l50_effect_index_set().  Neither read is<br \/>\ncovered by a length check, and custom_len is fully user controlled:<\/p>\n<p>  &#8211; custom_len == 0 makes memdup_array_user() call memdup_user() with a<br \/>\n    length of zero, which returns ZERO_SIZE_PTR rather than an error, so<br \/>\n    custom_data[0] dereferences it.<\/p>\n<p>  &#8211; custom_len == 1 allocates two bytes.  A bank of ROM or RAM keeps<br \/>\n    effect-&gt;type out of the OWT case, and custom_data[1] is then read one<br \/>\n    word past the allocation.<\/p>\n<p>The bank value itself is also mishandled.  It is masked with<br \/>\nCS40L50_CUSTOM_DATA_MASK (0xffff) but stored in an s16, so a<br \/>\ncustom_data[0] of 0x8000 or above wraps to a negative value that passes<br \/>\nthe &#8220;bank_type &gt;= CS40L50_WVFRM_BANK_NUM&#8221; test.<br \/>\ncs40l50_effect_index_set() indexes vib-&gt;dsp.banks[] with it before the<br \/>\nswitch statement&#8217;s default case gets a chance to reject it:<\/p>\n<p>    base_index = vib-&gt;dsp.banks[effect-&gt;type].base_index;<br \/>\n    max_index = vib-&gt;dsp.banks[effect-&gt;type].max_index;<\/p>\n<p>Require the two words the driver reads to be present, and hold the masked<br \/>\nbank in a u32 so the existing upper-bound test covers the whole range.<br \/>\nThe da7280 haptic driver already range checks custom_len this way.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>Input: cs40l50-vibra &#8211; validate custom data from user space<\/p>\n<p>cs40l50_add() copies the custom data of an FF_PERIODIC\/FF_CUSTOM effec<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-11973","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/11973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=11973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=11973"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=11973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}