{"id":"CVE-2026-143398","sourceIdentifier":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","published":"2026-12-03T10:18:33.667","lastModified":"2026-12-03T10:18:33.667","vulnStatus":"Received","cveTags":[],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nInput: destroy force-feedback device on input unregistration\n\nWhen an input device is unregistered while userspace holds an open file\ndescriptor to its event node, input_dev_release() is deferred until the\nlast file descriptor is closed. Because input_ff_destroy() was only\ncalled from input_dev_release(), force-feedback teardown (ff->destroy\nand freeing ff->private) could run after the parent driver had already\nunbound, freed its device state, or even been unloaded via rmmod,\ncausing use-after-free errors or page faults in unmapped module text.\n\nCommit ef166ce08801 (\"Input: stop force-feedback timer when\nunregistering input devices\") added a separate ff->stop callback for\nff-memless, but left ff->destroy invoked from input_dev_release().\n\nOnce __input_unregister_device() has disconnected all input handlers\n(which flushes effects, closes the device, and marks evdev dead) and\ndeleted the device from sysfs, nothing accesses dev->ff anymore. Call\ninput_ff_destroy() directly in __input_unregister_device() so that\nff->destroy() always runs synchronously while the driver and its module\nare still active, and remove the now-redundant ff->stop callback. Keep\ninput_ff_destroy() in input_dev_release() (where it is a no-op once\ndev->ff is NULL) to handle input_free_device() on devices that were\nnever registered."}],"affected":[{"source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","affectedData":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","programFiles":["drivers/input/ff-core.c","drivers/input/ff-memless.c","drivers/input/input.c","include/linux/input.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","lessThan":"d4dbb53c0d20ce8e19deb043ae3b8b90bb2fb91e","versionType":"git","status":"affected"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","lessThan":"ae0731b721fc5bc3a9e0b9cbc3feb34fef7758cf","versionType":"git","status":"affected"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","lessThan":"99d14d228e47d6c63832b52aef210ba372234c7a","versionType":"git","status":"affected"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","lessThan":"b3f2d3771b712a49fbd4cea760480f39e06404ca","versionType":"git","status":"affected"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","lessThan":"37e81f10ece145cb0e9b6c98a3addef95d227f1c","versionType":"git","status":"affected"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","lessThan":"2ae35f090d029d2d8491b0a7f98a04c5c05d0a44","versionType":"git","status":"affected"}]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","programFiles":["drivers/input/ff-core.c","drivers/input/ff-memless.c","drivers/input/input.c","include/linux/input.h"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","lessThan":"2.6.19","versionType":"semver","status":"unaffected"},{"version":"5.10.276","lessThanOrEqual":"5.10.*","versionType":"semver","status":"unaffected"},{"version":"5.15.227","lessThanOrEqual":"5.15.*","versionType":"semver","status":"unaffected"},{"version":"6.12.120","lessThanOrEqual":"6.12.*","versionType":"semver","status":"unaffected"},{"version":"6.18.66","lessThanOrEqual":"6.18.*","versionType":"semver","status":"unaffected"},{"version":"7.3.7","lessThanOrEqual":"7.3.*","versionType":"semver","status":"unaffected"},{"version":"7.4-rc4","lessThanOrEqual":"*","versionType":"original_commit_for_fix","status":"unaffected"}]}]}],"metrics":{},"references":[{"url":"https://git.kernel.org/stable/c/2ae35f090d029d2d8491b0a7f98a04c5c05d0a44","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/37e81f10ece145cb0e9b6c98a3addef95d227f1c","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/99d14d228e47d6c63832b52aef210ba372234c7a","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/ae0731b721fc5bc3a9e0b9cbc3feb34fef7758cf","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/b3f2d3771b712a49fbd4cea760480f39e06404ca","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"url":"https://git.kernel.org/stable/c/d4dbb53c0d20ce8e19deb043ae3b8b90bb2fb91e","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"}]}