{"id":"CVE-2026-143398","summary":"Input: destroy force-feedback device on input unregistration","details":"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-\u003edestroy\nand freeing ff-\u003eprivate) 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-\u003estop callback for\nff-memless, but left ff-\u003edestroy 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-\u003eff anymore. Call\ninput_ff_destroy() directly in __input_unregister_device() so that\nff-\u003edestroy() always runs synchronously while the driver and its module\nare still active, and remove the now-redundant ff-\u003estop callback. Keep\ninput_ff_destroy() in input_dev_release() (where it is a no-op once\ndev-\u003eff is NULL) to handle input_free_device() on devices that were\nnever registered.","modified":"2026-12-03T11:02:15.260099555Z","published":"2026-12-03T09:22:38.805Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143398.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/2ae35f090d029d2d8491b0a7f98a04c5c05d0a44"},{"type":"WEB","url":"https://git.kernel.org/stable/c/37e81f10ece145cb0e9b6c98a3addef95d227f1c"},{"type":"WEB","url":"https://git.kernel.org/stable/c/99d14d228e47d6c63832b52aef210ba372234c7a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae0731b721fc5bc3a9e0b9cbc3feb34fef7758cf"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b3f2d3771b712a49fbd4cea760480f39e06404ca"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d4dbb53c0d20ce8e19deb043ae3b8b90bb2fb91e"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143398.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143398"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b"},{"fixed":"d4dbb53c0d20ce8e19deb043ae3b8b90bb2fb91e"},{"fixed":"ae0731b721fc5bc3a9e0b9cbc3feb34fef7758cf"},{"fixed":"99d14d228e47d6c63832b52aef210ba372234c7a"},{"fixed":"b3f2d3771b712a49fbd4cea760480f39e06404ca"},{"fixed":"37e81f10ece145cb0e9b6c98a3addef95d227f1c"},{"fixed":"2ae35f090d029d2d8491b0a7f98a04c5c05d0a44"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143398.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.6.19"},{"fixed":"5.10.276"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.227"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143398.json"}}],"schema_version":"1.9.2"}