CVE-2026-98645

HID: winwing: fix use-after-free in force feedback teardown

Published Oct 18, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

HID: winwing: fix use-after-free in force feedback teardown

winwing_init_ff() passes the driver's private data, allocated with
devm_kzalloc() in winwing_probe(), as the effect context to
input_ff_create_memless(). The memoryless force-feedback core takes
ownership of that pointer and frees it with kfree() from
input_ff_destroy() (ml_ff_destroy()) when the input device is
destroyed.

Freeing a devm-managed allocation with kfree() is an invalid free, and
the same object is then released again by devres when the HID device is
torn down, a double free. As the allocation also embeds the LED class
devices, their timers and work item live on freed memory and the slab
gets corrupted. This triggers on unbind, rmmod, hot-unplug and on system
suspend, where the firmware cache walks the now-corrupt devres list.
KASAN reports:

BUG: KASAN: invalid-free in input_ff_destroy
Allocated by task N:
winwing_probe

Pass NULL as the memless context instead and fetch the driver data from
the input device in winwing_play_effect(): the HID core already stores
the hid_device as the input device's drvdata. The force-feedback core
then owns nothing that it must not free.

Analysis

AI-generated

Technical impact

The vulnerability originates from a use‑after‑free condition in the Linux kernel HID driver. When a device using the winwing driver is removed or the module is unloaded, the force‑feedback subsystem frees driver data that is still owned by the device framework, causing a double free and corrupting kernel memory. Such corruption can trigger kernel panics, potentially enabling arbitrary code execution with elevated privileges or causing a denial of service that impacts all users on the affected system.

Affected Systems

All distributions that ship the Linux kernel with the winwing HID driver enabled. The vulnerability arises at the kernel level and is not limited to a specific product version; it affects any system that uses this driver until the reported patch is applied.

Risk and Exploitability

The CVSS score of 5.5 and an EPSS score of less than 1% have been assigned to this vulnerability, indicating a moderate severity and a low likelihood of exploitation. Because the flaw occurs in privileged kernel code and involves a double free that corrupts kernel memory, the potential impact remains significant, allowing a local attacker to cause a system crash or potentially achieve privilege escalation. No public exploits are listed in CISA’s KEV catalog. The likely attack vector is local, through removal of a device that uses the winwing driver, module unload, or entering a system suspend state. Without a patch, affected systems remain vulnerable until the kernel update is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel update that incorporates the winwing force‑feedback teardown fix.
  • If an update is not yet available, disable the winwing HID driver (blacklist winwing) or unload it (rmmod winwing) before powering down or suspending the system to avoid the double free scenario.
  • Disable force‑feedback functionality for devices that use winwing by applying device‑specific udev rules or vendor filters to prevent input_ff_create_memless from being instantiated.
  • Monitor system logs for KASAN or kernel panic messages indicating memory corruption to detect potential exploitation attempts.

Generated by OpenCVE AI on October 22, 2026 at 21:18 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-763
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: HID: winwing: fix use-after-free in force feedback teardown winwing_init_ff() passes the driver's private data, allocated with devm_kzalloc() in winwing_probe(), as the effect context to input_ff_create_memless(). The memoryless force-feedback core takes ownership of that pointer and frees it with kfree() from input_ff_destroy() (ml_ff_destroy()) when the input device is destroyed. Freeing a devm-managed allocation with kfree() is an invalid free, and the same object is then released again by devres when the HID device is torn down, a double free. As the allocation also embeds the LED class devices, their timers and work item live on freed memory and the slab gets corrupted. This triggers on unbind, rmmod, hot-unplug and on system suspend, where the firmware cache walks the now-corrupt devres list. KASAN reports: BUG: KASAN: invalid-free in input_ff_destroy Allocated by task N: winwing_probe Pass NULL as the memless context instead and fetch the driver data from the input device in winwing_play_effect(): the HID core already stores the hid_device as the input device's drvdata. The force-feedback core then owns nothing that it must not free.
Title HID: winwing: fix use-after-free in force feedback teardown
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Oct 19, 2026, 9:23 AM
Reserved
Sep 25, 2026, 10:25 AM
Status
Received
Published
Oct 18, 2026, 4:17 PM
Modified
Oct 19, 2026, 10:19 AM
Severity
Moderate
Public date
Oct 18, 2026, 12:00 AM