In the Linux kernel, the following vulnerability has been resolved: Input: always accept EV_SYN in input_event() Commit 0cd587735205 ("Input: preallocate memory to hold event values") moved allocation of dev->vals into input_allocate_device(), which caused input core to accumulate events reported while seeding initial device state before input_register_device(). However, because EV_SYN is only set in dev->evbit during input_register_device() (and some drivers also overwrite dev->evbit directly before registration), any EV_SYN/SYN_REPORT events sent before registration were dropped by is_event_supported(), leaving those seeded events stuck in dev->vals until the next SYN_REPORT after registration. Always accept EV_SYN in input_event() and input_inject_event() without checking dev->evbit so input_sync() flushes dev->vals as intended.
https://git.kernel.org/stable/c/ff61f9a59e2dfc4e671ea6907c8114762652ee93
https://git.kernel.org/stable/c/c1d13bfdb9c75c2885d10332174a887349eb0b51
https://git.kernel.org/stable/c/8803593347710323494c1bbeefe2f0781cee7950
https://git.kernel.org/stable/c/523b2387d7869b277fba5e15987a199f4df0d602