{"id":"CVE-2026-143398","state":"PUBLISHED","title":"Input: destroy force-feedback device on input unregistration","description":"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.","publishedAt":"2026-12-03T09:22:38.805Z","updatedAt":"2026-12-03T09:22:38.805Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"d4dbb53c0d20ce8e19deb043ae3b8b90bb2fb91e","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"ae0731b721fc5bc3a9e0b9cbc3feb34fef7758cf","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"99d14d228e47d6c63832b52aef210ba372234c7a","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"b3f2d3771b712a49fbd4cea760480f39e06404ca","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"37e81f10ece145cb0e9b6c98a3addef95d227f1c","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"2ae35f090d029d2d8491b0a7f98a04c5c05d0a44","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/ff-core.c","drivers/input/ff-memless.c","drivers/input/input.c","include/linux/input.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/ff-core.c","drivers/input/ff-memless.c","drivers/input/input.c","include/linux/input.h"]}],"references":["https://git.kernel.org/stable/c/d4dbb53c0d20ce8e19deb043ae3b8b90bb2fb91e","https://git.kernel.org/stable/c/ae0731b721fc5bc3a9e0b9cbc3feb34fef7758cf","https://git.kernel.org/stable/c/99d14d228e47d6c63832b52aef210ba372234c7a","https://git.kernel.org/stable/c/b3f2d3771b712a49fbd4cea760480f39e06404ca","https://git.kernel.org/stable/c/37e81f10ece145cb0e9b6c98a3addef95d227f1c","https://git.kernel.org/stable/c/2ae35f090d029d2d8491b0a7f98a04c5c05d0a44"],"weaknesses":[],"ingestedAt":"2026-12-03T09:44:04.436Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/143xxx/CVE-2026-143398.json","commit":"9e309c7c0f08856e2558a1df33f75dca027fab70","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-143398","state":"PUBLISHED","datePublished":"2026-12-03T09:22:38.805Z","dateUpdated":"2026-12-03T09:22:38.805Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-12-03T03:10:28.373Z"},"containers":{"cna":{"title":"Input: destroy force-feedback device on input unregistration","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":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"d4dbb53c0d20ce8e19deb043ae3b8b90bb2fb91e","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"ae0731b721fc5bc3a9e0b9cbc3feb34fef7758cf","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"99d14d228e47d6c63832b52aef210ba372234c7a","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"b3f2d3771b712a49fbd4cea760480f39e06404ca","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"37e81f10ece145cb0e9b6c98a3addef95d227f1c","versionType":"git"},{"version":"509ca1a9383601fdc5612d3d3ba5b981f6eb6c8b","status":"affected","lessThan":"2ae35f090d029d2d8491b0a7f98a04c5c05d0a44","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/ff-core.c","drivers/input/ff-memless.c","drivers/input/input.c","include/linux/input.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.19","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.19","versionType":"semver"},{"version":"5.10.276","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.227","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc4","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/input/ff-core.c","drivers/input/ff-memless.c","drivers/input/input.c","include/linux/input.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/d4dbb53c0d20ce8e19deb043ae3b8b90bb2fb91e"},{"url":"https://git.kernel.org/stable/c/ae0731b721fc5bc3a9e0b9cbc3feb34fef7758cf"},{"url":"https://git.kernel.org/stable/c/99d14d228e47d6c63832b52aef210ba372234c7a"},{"url":"https://git.kernel.org/stable/c/b3f2d3771b712a49fbd4cea760480f39e06404ca"},{"url":"https://git.kernel.org/stable/c/37e81f10ece145cb0e9b6c98a3addef95d227f1c"},{"url":"https://git.kernel.org/stable/c/2ae35f090d029d2d8491b0a7f98a04c5c05d0a44"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-12-03T09:22:38.805Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.10.276"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"5.15.227"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.19","versionEndExcluding":"7.4-rc4"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}