Input: uinput - reject requests with unreasonable number of slots
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 38e7afe96c7c0ad900824911c61fdb04078033dc · < a4858b00a1ec57043697fb935565fe267f161833| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: uinput - reject requests with unreasonable number of slots
When exercising uinput interface syzkaller may try setting up device with a really large number of slots, which causes memory allocation failure in input_mt_init_slots(). While this allocation failure is handled properly and request is rejected, it results in syzkaller reports. Additionally, such request may put undue burden on the system which will try to free a lot of memory for a bogus request.
Fix it by limiting allowed number of slots to 100. This can easily be extended if we see devices that can track more than 100 contacts.
From the CVE record · Linux
The Linux kernel’s uinput interface accepts requests to create devices with an unreasonable number of slots. A local requester able to use uinput can trigger a large allocation attempt that may put undue memory-reclamation burden on the system; the allocation failure itself is handled and the request is rejected.
Engineers running Linux kernels with the affected uinput interface should check their kernel version against the vendor advisory.