Input: zero ff_effect before compat copy in input_ff_effect_from_user
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f84819ef8d66931ee3998fee3c4f03230f4cb6cc, Kernel 0d05b43b55d4784a42ce8fb318175f8ad7d9af5a, Kernel 6c26681c5668c973bd0e951407d670ac60d9cd66 and 12 more.
In the Linux kernel, the following vulnerability has been resolved: Input: zero ff_effect before compat copy in input_ff_effect_from_user In the compat path input_ff_effect_from_user() aliases the caller's native struct ff_effect with the smaller struct ff_effect_compat and copies only the compat sized prefix: compat_effect = (struct ff_effect_compat *)effect; if (copy_from_user(compat_effect, buffer, sizeof(struct ff_effect_compat))) The tail of the native structure is never written. Callers pass an uninitialized on-stack object, for example evdev_do_ioctl() for EVIOCSFF, so those bytes keep their previous stack contents. input_ff_upload() then stores the full native structure in ff->effects[id], from where a uinput based force feedback daemon can read it back via UI_BEGIN_FF_UPLOAD, disclosing kernel stack memory to userspace. Zero the effect before the compat copy.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=2d56f3a32c0e62f99c043d2579840f9731fe5855 <f84819ef8d66931ee3998fee3c4f03230f4cb6cc, >=2d56f3a32c0e62f99c043d2579840f9731fe5855 <0d05b43b55d4784a42ce8fb318175f8ad7d9af5a, >=2d56f3a32c0e62f99c043d2579840f9731fe5855 <6c26681c5668c973bd0e951407d670ac60d9cd66, >=2d56f3a32c0e62f99c043d2579840f9731fe5855 <b878720e8bcaa4cf7163a5081f904dd6baf11b2c, >=2d56f3a32c0e62f99c043d2579840f9731fe5855 <c5e573bb095d502be7cbbaa99c26a20984111c6d, >=2d56f3a32c0e62f99c043d2579840f9731fe5855 <ec174c2ab1abb76b20fa167c6db848c3d97aa838, >=2d56f3a32c0e62f99c043d2579840f9731fe5855 <ed0406e490f48ed180df140fe2a81be26bccb1a9, >=2d56f3a32c0e62f99c043d2579840f9731fe5855 <ed0905fda39682d3da7937184397d3276abbffa8, =2.6.29 | f84819ef8d66931ee3998fee3c4f03230f4cb6cc, 0d05b43b55d4784a42ce8fb318175f8ad7d9af5a, 6c26681c5668c973bd0e951407d670ac60d9cd66, b878720e8bcaa4cf7163a5081f904dd6baf11b2c, c5e573bb095d502be7cbbaa99c26a20984111c6d, ec174c2ab1abb76b20fa167c6db848c3d97aa838, ed0406e490f48ed180df140fe2a81be26bccb1a9, ed0905fda39682d3da7937184397d3276abbffa8 |
| linux-kernel: Kernel | >=5.11.0 <5.15.222, >=5.16.0 <6.1.189, >=6.13.0 <6.18.54, >=6.19.0 <7.2.8, >=6.2.0 <6.6.158, >=6.7.0 <6.12.112, >=2.6.29 <5.10.271 | 5.15.222, 6.1.189, 6.18.54, 7.2.8, 6.6.158, 6.12.112, 5.10.271 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket