Shellfeed logo Shellfeed

CVE-2026-98201 · UNKNOWN

Summary: Input: zero ff_effect before compat copy in input_ff_effect_from_user

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 7.3).

Details

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 packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [2d56f3a32c0e62f99c043d2579840f9731fe5855 – ed0905fda39682d3da7937184397d3276abbffa8]
  • Linux Kernel [2.6.29 – 5.10.271] [5.11.0 – 5.15.222] [5.16.0 – 6.1.189] [6.2.0 – 6.6.158] [6.7.0 – 6.12.112] [6.13.0 – 6.18.54] [6.19.0 – 7.2.8]

References