Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 39E062E5B13 for ; Wed, 1 Oct 2025 11:54:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319688; cv=none; b=E/JRT395VKCu+vT6uiDG886fyCM78ve5m9CdJo1b94q9+Xav466urre3xhE7WLB/buTV6ZuLTeWTM1elLpywXTzLWuHXu+e7ZXquO9JVcpvfHj1f8QOYyEtQLbYVGxi8BV0XOnn1EnwB0SNCsOjy8Ig/zE0FseWgUBMROjCpSGA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759319688; c=relaxed/simple; bh=3gLEt953ipVNR1rNRjlcwxUlO6PKN4BQdrjJDd4G454=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ep8y3jlUFbBeiaRedlQcQVki2+HyQjsGXyx8RsBZ9R6NlLxV91M5Q9gnoBBOWz5VinRsuYNSqpbG+mNZEi9iuBgQoLHDfHbbf1/9W+acBEl1iLPXkxx8+lvCnzGa+wgUKhndmfOQVtUhZyJj5tOz3nXkG8ZLSg990nTYdIX1zhA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uO09P1nJ; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="uO09P1nJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9D958C4CEF4; Wed, 1 Oct 2025 11:54:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759319688; bh=3gLEt953ipVNR1rNRjlcwxUlO6PKN4BQdrjJDd4G454=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uO09P1nJ/i+43lQBnhMDLFni+p79of98J20Ktd7NE3GYs8iTk5q+I/XmP+80xOG0b HrgDslEMDkqhzoZXQ2bIXyDRgiViC/8iirvkHPbGIHwjqk24Bq0FVeEi8n+Q/TYris 9zODPWBuAsv5XI8iNwO4hTCBBRGuAYGrnTeH3CjY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53459: HID: mcp-2221: prevent UAF in delayed work Date: Wed, 1 Oct 2025 13:42:29 +0200 Message-ID: <2025100106-CVE-2023-53459-48f3@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2087; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uNJzEKiVqwHgh23pUIlLR24Oc2KAmf7yu3HDFKIdthw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl3hfvuZin5Zlxt81tROPWmxse7yXz3JcpsL03M3aNns sQk771jRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExkwwuG+XWpEo2rPJ68nZa5 8LVBXuSX/Akc3xgWnJt0WHRN5vnlt34sONCUun2q6O3YQgA= 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: mcp-2221: prevent UAF in delayed work If the device is plugged/unplugged without giving time for mcp_init_work() to complete, we might kick in the devm free code path and thus have unavailable struct mcp_2221 while in delayed work. Canceling the delayed_work item is enough to solve the issue, because cancel_delayed_work_sync will prevent the work item to requeue itself. The Linux kernel CVE team has assigned CVE-2023-53459 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 960f9df7c620ecb6030aff1d9a6c3d67598b8290 and fixed in 6.2.1 with commit 5dc297652dbc557eba7ca7d6a4c5f1940dffffb1 Issue introduced in 6.2 with commit 960f9df7c620ecb6030aff1d9a6c3d67598b8290 and fixed in 6.3 with commit 47e91fdfa511139f2549687edb0d8649b123227b 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-2023-53459 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-mcp2221.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/5dc297652dbc557eba7ca7d6a4c5f1940dffffb1 https://git.kernel.org/stable/c/47e91fdfa511139f2549687edb0d8649b123227b