Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E55013914F8 for ; Sun, 18 Oct 2026 15:36:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337821; cv=none; b=Le7NMdas3F49mdbc7/NjYKHPxceOavA7CW9GI2HWPSaUQnNeZX0mwSgrHLKEWeBN6XLhjBNpyTLTFEtBN+THJkCgTjmTc3u6IuxaW6bPnseF7D3ptVseYXtr4UdPUzpuEBdQx/raGRu3akUD0kPFiA1276s964fRBLCvF5Y0FhM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337821; c=relaxed/simple; bh=ItM2BNABPYEE939+rroRc69NcL6KlxC8KlXX09ghP00=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=UgPYBHhMjqIONZ7qv4avAcS5Ue5pmLPBaKX/2CJ3Q6ch8edlscja0y1jFmVkrYIA8kBx+JliNuwxLMLOta1MQo/ROFTijgt6f6gfNsmddRaXteMql0BztIZYTr/nYs6AZX6Zv4FWLCSfmSPv1g+hvF+pHg4crzOhHFusmhS7FqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yKBnJEEx; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="yKBnJEEx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D6FB1F000C4; Sun, 18 Oct 2026 15:36:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337819; bh=sRWaIFPtPQl3YeWb5+z+myOHLSDCQm3SwxFS3ogzyfU=; h=From:To:Cc:Subject:Date:Reply-To; b=yKBnJEExNyHmYAM5qcjLFBtFxGyyiVFuWpA8kpq9ffceYDO9+0KpxpJmkKVFWwxuk +JOtidnWyotdZAZwUuYbU+xNc7aZakQtBg/3K/ar9unKqDURAf4EW+4Hi/eQuKQZ26 luEmzEMzcG38IBb22h/kB2Fxa9OLWq2n2FwLcfZ8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98645: HID: winwing: fix use-after-free in force feedback teardown Date: Sun, 18 Oct 2026 17:18:29 +0200 Message-ID: <2026101846-CVE-2026-98645-a3cb@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2899; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ihP7XtO+dsZeA/plCsnkOryD9jt4vjwLD0lPmG0opzU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHi3SZnirPOH+Rv57u+YYcM4Kil5okX3rO9frWcvLf mWXfdIV7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJyK5gWNC4fE+n+tS/xttc mTcyXfDcJZW7fh3DgmVhsbqvHh17MHkDhzxH5vE5nyevvQYA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-98645 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 42d020b54edc57d03749bed75976f1e962a9fbfa and fixed in 7.2.9 with commit 2b25f11ec52ea0a82334d5b83ee321f6b0a35923 Issue introduced in 7.1 with commit 42d020b54edc57d03749bed75976f1e962a9fbfa and fixed in 7.3-rc5 with commit a1a5ad37e50ceb192c07ac7e2d7143638cd4d110 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-98645 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/hid/hid-winwing.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/2b25f11ec52ea0a82334d5b83ee321f6b0a35923 https://git.kernel.org/stable/c/a1a5ad37e50ceb192c07ac7e2d7143638cd4d110