Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2d56f3a32c0e62f99c043d2579840f9731fe5855 · < 48c96b7e9e03516936d6deba54b5553097eae817| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
Input: uinput - zero-initialize uinput_ff_upload_compat to avoid info leak
Struct ff_effect_compat is embedded twice inside uinput_ff_upload_compat, contains internal padding. In particular, there is a hole after struct ff_replay to satisfy alignment requirements for the following union member. Without clearing the structure, copy_to_user() may leak stack data to userspace.
Initialize ff_up_compat to zero before filling valid fields.
From the CVE record · Linux
The Linux kernel's uinput force-feedback upload compatibility structure can contain uninitialized padding. When the kernel copies this structure to userspace, it may disclose stack data to a local process; the input does not specify authentication requirements or other user interaction.
Teams running the Linux kernel should check their installations; affected versions were not specified.