KernelScan.io

HIGH Introduced in 7.1

hid ForceFeedback UAF

CVE-2026-98645

CVSS 7.8 / 10.0 KernelScan AI

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

01

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.

02

Engine v0.9.0

Risk summary

Products with Winwing TGRIP throttle grips connected via USB are at risk. A local user can trigger kernel memory corruption and privilege escalation by initiating system suspend, or an attacker with physical access can exploit the flaw by hot-unplugging a malicious device. The vulnerability leads to kernel panic, information disclosure, and potential arbitrary code execution.

Affecteddrivers/hid/hid-winwing.c (HID winwing driver)

Vulnerability analysis

The Winwing HID driver incorrectly passes a devm-managed private data pointer to the force-feedback core as an effect context. The force-feedback core assumes ownership and frees this pointer with kfree() during input device teardown, but the devres system also frees the same memory when the HID device is removed. This double-free corrupts the kernel slab allocator and leaves LED timers and work items operating on freed memory, causing use-after-free. The fix stops passing the driver data to the force-feedback core; instead, the effect callback retrieves the driver data from the input device's drvdata, which the HID core already manages. The bug is reachable by any local user who can trigger system suspend, or by physical attackers who can hot-unplug a Winwing-compatible USB device.

03

BranchIntroducedFixed inPatch commit
7.27.17.2.92b25f11ec52e
mainline7.17.3a1a5ad37e50c