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 F0DD42FFFB6 for ; Tue, 13 Jan 2026 15:31:59 +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=1768318320; cv=none; b=okNqkSB9fBm0E65zic+bWdXObbDxuaDQ6xu0B9G+qe7m+qYr5EcAp3EizxxpO9EyG2SrYi6154kXKNtmaPzW0/zfgjUNcNoiJ7YyY+rhAwWvjHbSc5tKqpqumL4q0bLfo2TuGXE0FLMMN31fCv5rYZwUgTHf0lh6aGAmBiV7juY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318320; c=relaxed/simple; bh=R3ZuXYZktCL36GA+1CzX1h9yh19SKXtdkYVOhNJJUO4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YlwJ1eDoRpfVlJ82mxgUey5O3sEapqdKe9L/50atbE2KAjlVRdhIU7AF9UCvvjerO9P9yfbHYsqLdnMIHltaCVfDxT3l5EOuFrBWIh1fGa6uXDJk/weCme2oWN0LSYkV0XEDZ6s/kLKcTKCAA/AMVHyJBcY85S7UWhKdgAEKfkU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=syKQy/oQ; 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="syKQy/oQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 79D7AC19424; Tue, 13 Jan 2026 15:31:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318319; bh=R3ZuXYZktCL36GA+1CzX1h9yh19SKXtdkYVOhNJJUO4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=syKQy/oQLQyfrc6DmJglEOlPVnKrM44zbynG/W45mJCxdjGHPkOWS3iazeuRE8SYZ UfsGzYy83gWzTS3Cz4kN9m7lasv8SLbf0wYQA+Doe+KUgwjqNtgb7vfaYuwXJPIsRC p6qCjeKuRHyYCiW2bsoNGfcEg6r1zkfPWX4hfQ0M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68822: Input: alps - fix use-after-free bugs caused by dev3_register_work Date: Tue, 13 Jan 2026 16:29:48 +0100 Message-ID: <2026011315-CVE-2025-68822-a75d@gregkh> X-Mailer: git-send-email 2.52.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=3573; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=fQjfZ/WNhmuJygRwKV0VkUV7OWeq9KgPHZhK1Bl8r+o=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKad7ziQ8TlpfK8a3yG7Op6TQ1sl+xbcOdJx4aH66w G5ee4VXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE+gzDgonVUSc5uOKl0vPb nB+d1BDi83P0YJhfMj1L54/Ob9YLgn4nD/0o8vSzvXwdAA== 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: Input: alps - fix use-after-free bugs caused by dev3_register_work The dev3_register_work delayed work item is initialized within alps_reconnect() and scheduled upon receipt of the first bare PS/2 packet from an external PS/2 device connected to the ALPS touchpad. During device detachment, the original implementation calls flush_workqueue() in psmouse_disconnect() to ensure completion of dev3_register_work. However, the flush_workqueue() in psmouse_disconnect() only blocks and waits for work items that were already queued to the workqueue prior to its invocation. Any work items submitted after flush_workqueue() is called are not included in the set of tasks that the flush operation awaits. This means that after flush_workqueue() has finished executing, the dev3_register_work could still be scheduled. Although the psmouse state is set to PSMOUSE_CMD_MODE in psmouse_disconnect(), the scheduling of dev3_register_work remains unaffected. The race condition can occur as follows: CPU 0 (cleanup path) | CPU 1 (delayed work) psmouse_disconnect() | psmouse_set_state() | flush_workqueue() | alps_report_bare_ps2_packet() alps_disconnect() | psmouse_queue_work() kfree(priv); // FREE | alps_register_bare_ps2_mouse() | priv = container_of(work...); // USE | priv->dev3 // USE Add disable_delayed_work_sync() in alps_disconnect() to ensure that dev3_register_work is properly canceled and prevented from executing after the alps_data structure has been deallocated. This bug is identified by static analysis. The Linux kernel CVE team has assigned CVE-2025-68822 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit 04aae283ba6a8cd4851d937bf9c6d6ef0361d794 and fixed in 6.12.64 with commit ed8c61b89be0c45f029228b2913d5cf7b5cda1a7 Issue introduced in 4.0 with commit 04aae283ba6a8cd4851d937bf9c6d6ef0361d794 and fixed in 6.18.3 with commit a9c115e017b2c633d25bdfe6709dda6fc36f08c2 Issue introduced in 4.0 with commit 04aae283ba6a8cd4851d937bf9c6d6ef0361d794 and fixed in 6.19-rc2 with commit bf40644ef8c8a288742fa45580897ed0e0289474 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-2025-68822 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/input/mouse/alps.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/ed8c61b89be0c45f029228b2913d5cf7b5cda1a7 https://git.kernel.org/stable/c/a9c115e017b2c633d25bdfe6709dda6fc36f08c2 https://git.kernel.org/stable/c/bf40644ef8c8a288742fa45580897ed0e0289474