Input: zero ff_effect before compat copy in input_ff_effect_from_user (Linux Linux)

CVE-2026-98201
Not available

At a glance

Source
NVD
EPSS
EPSS 0.18 % · percentile 7 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Received

Description

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.

References

European references

CERT-FR advisories

Affected products

ProductVersions
Linux · Linuxaffected 2d56f3a32c0e62f99c043d2579840f9731fe5855 < ed0905fda39682d3da7937184397d3276abbffa8 ; affected 2d56f3a32c0e62f99c043d2579840f9731fe5855 < ec174c2ab1abb76b20fa167c6db848c3d97aa838 ; affected 2d56f3a32c0e62f99c043d2579840f9731fe5855 < 6c26681c5668c973bd0e951407d670ac60d9cd66 ; affected 2d56f3a32c0e62f99c043d2579840f9731fe5855 < c5e573bb095d502be7cbbaa99c26a20984111c6d ; affected 2d56f3a32c0e62f99c043d2579840f9731fe5855 < b878720e8bcaa4cf7163a5081f904dd6baf11b2c ; affected 2d56f3a32c0e62f99c043d2579840f9731fe5855 < 0d05b43b55d4784a42ce8fb318175f8ad7d9af5a
Linux · Linuxaffected 2.6.29 ; unaffected 0 < 2.6.29 ; unaffected 5.10.271 ≤ 5.10.* ; unaffected 5.15.222 ≤ 5.15.* ; unaffected 6.1.189 ≤ 6.1.* ; unaffected 6.6.158 ≤ 6.6.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD