Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795100475; b=RxRCEpoGSXBww6RbviGGQlrXC9gwMOloThXwVEcdijiIHoizUnXJ3oBWuxTEhSjrKC7k r6InPX0bT2/6agyvbNbehwF4jVUn49b7BkXHwphOcOP7jyPMOW9+Gi4wh33i5ohfHK3ay DX4/z6tu+N0FrWGJwyvfDEl7Ann+omztQ7HLoA+jisHk7g1ZybyKy1FBWZQftKAowboY0 pjUGXrWJ0aGeU0WuVXQKZlLJk54WdG+eQclaMp9NzySNJ4PG006I2snVUFUQM0kd7o8we zGZi2gYSFxOvY4XVn6Knki3+cH+Er3r2K+2YTk73xflU9sC9Nc/E2k46Jd+3EDdEmeA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795100475; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=Qml5yFfpFBxFsEp8pABTFaOc0kxjgCG0zadvc1EbMc8=; b=gMni/0FbM6sRKhGFMu+Y49h8+nsPOnWwqXy/XE2Acb9jd6nE9fIJLAP/L7u5PBJLvz+Y gg3ghTHZXEbZvCV4XsgpA+7evtmTvQQhITpBOO9mFKU9IXRN5MCm/wz9A0rOyq+uzxR41 NvPG0CJsS8evyicHLvleXgbWIFjwAQbPyq+6yCGtJIDEY6pnwH9GBpHYZbVqLZMzV+hqv AjDS5uuDXHZ//466wMHXV+XfDlSJaQ38Bel2TgzLl53KJX5lbwWfQfu0565fpa0OdwjYT GHl5s7LKjznyNqiouZ7Q80+JDu97/0f7RSEMYgSWxMq0gGgLNocq8ZOe7C4Tr7cAXKw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=FarGnvm5; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7026F606A326 for ; Thu, 19 Nov 2026 15:01:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=FarGnvm5 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87B901F000C4; Thu, 19 Nov 2026 15:01:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795100475; bh=Qml5yFfpFBxFsEp8pABTFaOc0kxjgCG0zadvc1EbMc8=; h=From:To:Cc:Subject:Date:Reply-To; b=FarGnvm5HP6MkQIVu/TPt4ppA+pmdz5B261OSortiFhjhy8Bx1OlZniFyXzSrhw6j aJHr3V7ByHJYfjCAvVgPm0ww71xSuTrdp+cD9J970yslBbJYassy/ha+5smFkvm+DQ jD3OM648utC6opElt3cP6vcmmmWr2/QNhXst8d44= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99518: platform/x86: asus-wmi: fix use-after-free unregistering kbd_led led Date: Thu, 19 Nov 2026 15:26:56 +0100 Message-ID: <2026111919-CVE-2026-99518-cf82@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2836; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BiX1LBm2v4D3gTCb+E5t7ohH2NheC/lvjKKZzco0jc8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2SZPDbOqc/vMOenJpjlvlrh5Zm1o+Zha9Va5zS5/j 861eb/mdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEFk9jWLCkaGn8nMWB/+6v nio0UUh6qVTXVHGG+VW3UpW2RN3m38iz++fcTeKe3X8neQIA 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: platform/x86: asus-wmi: fix use-after-free unregistering kbd_led led kbd_led_update_all() registers asus->kbd_led with devm_led_classdev_register() on the platform device, but kbd_led is embedded in struct asus_wmi, which asus_wmi_remove() frees at its end. The driver core calls .remove() before devres_release_all(), so the deferred devres release runs led_classdev_unregister() on memory that has already been freed. Whether that faults depends on whether the slab has been reused in between, which makes the crash on module unload intermittent and silently corrupts the led classdev state in the remaining runs. Unregister the led classdev explicitly in asus_wmi_led_exit(), after the led workqueue has been destroyed: kbd_led_work can then neither run nor be queued anymore, since asus_ref.asus is NULL too, so kbd_led_registered is stable and the classdev can be released while the memory embedding it is still alive. devm_led_classdev_unregister() also drops the devres entry, leaving nothing to run at unbind cleanup time; it warns when no devres entry exists, hence the kbd_led_registered check. The Linux kernel CVE team has assigned CVE-2026-99518 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit fac55d29581fcd4c3b66b9c2b9f7995c459c0064 and fixed in 7.3.2 with commit 465f3074762ad943370881d7b6f096e70d9a5a5a Issue introduced in 7.0 with commit fac55d29581fcd4c3b66b9c2b9f7995c459c0064 and fixed in 7.4-rc1 with commit 639bc2254816b7c4e7a9801a7b3aa71bfa3f915c 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-99518 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/platform/x86/asus-wmi.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/465f3074762ad943370881d7b6f096e70d9a5a5a https://git.kernel.org/stable/c/639bc2254816b7c4e7a9801a7b3aa71bfa3f915c