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 19C3416D9DE for ; Fri, 21 Jun 2024 10:24:01 +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=1718965442; cv=none; b=oR4hYHHOLtJFAbU0Q9jYvjIUrRKGFj3JGV6+60lb7E3YtFjOIng5weHsTdl/44/4hcYbhUX8T4MEusx/ZPCbbgjw8ndh3rO2DjdhOLsPw0jB+UCjuBZJortdHQxqYKti5Uauevq5rwlQXacxeoR1UF2ligzorPzoAdFG1Kt+QYQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718965442; c=relaxed/simple; bh=JNhjeUk+G88WSVvrFFdgQSLjLddKPDpHpSMXrVdxQOY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=d1t5BEbmn1PwbJ/X8Nw4vu+TQKBgGtnrisfySEzJczIfmzU5fse83ZJQw0X6oKUJoTCi2xg0R9mYcFpN2A1u5aqcft0aTtbiJOdvinfbznajLuWKSiOF3Xmb8c1yzgT1bsDYbceumxCFX+weHDiJDjufDg1SyjOvmznO/MJxMyY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V4aldYGo; 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="V4aldYGo" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5AB6DC2BBFC; Fri, 21 Jun 2024 10:24:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1718965441; bh=JNhjeUk+G88WSVvrFFdgQSLjLddKPDpHpSMXrVdxQOY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=V4aldYGocdL+tnqHhLolP/+RyV1AFWbqM7j5ir+gdULw35hk8B8k/ju/oCm5MiAhV VszkfE1jLQatzHVNZrNTymjFAYfxjEMhkF6Vb93R1O0aYRzFFpNFjNpS1oTaar6U74 i9RjCHI8J3Cj2gnHEMNpSRX7PO5c6esQbozhjJYw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52884: Input: cyapa - add missing input core locking to suspend/resume functions Date: Fri, 21 Jun 2024 12:19:30 +0200 Message-ID: <2024062131-CVE-2023-52884-5b0d@gregkh> X-Mailer: git-send-email 2.45.2 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=4868; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JNhjeUk+G88WSVvrFFdgQSLjLddKPDpHpSMXrVdxQOY=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmlwZttti3hYYi7dPtCRNXfHdMWL/gvWPffvHbWzfCNk vvOptkc7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJXFzLsKDD0yVbe/X79ZP6 D+iUXrGvOaBnv4phQd9ftsuCcqrnTDlMll4wOHCmvjjGEwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: Input: cyapa - add missing input core locking to suspend/resume functions Grab input->mutex during suspend/resume functions like it is done in other input drivers. This fixes the following warning during system suspend/resume cycle on Samsung Exynos5250-based Snow Chromebook: ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1680 at drivers/input/input.c:2291 input_device_enabled+0x68/0x6c Modules linked in: ... CPU: 1 PID: 1680 Comm: kworker/u4:12 Tainted: G W 6.6.0-rc5-next-20231009 #14109 Hardware name: Samsung Exynos (Flattened Device Tree) Workqueue: events_unbound async_run_entry_fn unwind_backtrace from show_stack+0x10/0x14 show_stack from dump_stack_lvl+0x58/0x70 dump_stack_lvl from __warn+0x1a8/0x1cc __warn from warn_slowpath_fmt+0x18c/0x1b4 warn_slowpath_fmt from input_device_enabled+0x68/0x6c input_device_enabled from cyapa_gen3_set_power_mode+0x13c/0x1dc cyapa_gen3_set_power_mode from cyapa_reinitialize+0x10c/0x15c cyapa_reinitialize from cyapa_resume+0x48/0x98 cyapa_resume from dpm_run_callback+0x90/0x298 dpm_run_callback from device_resume+0xb4/0x258 device_resume from async_resume+0x20/0x64 async_resume from async_run_entry_fn+0x40/0x15c async_run_entry_fn from process_scheduled_works+0xbc/0x6a8 process_scheduled_works from worker_thread+0x188/0x454 worker_thread from kthread+0x108/0x140 kthread from ret_from_fork+0x14/0x28 Exception stack(0xf1625fb0 to 0xf1625ff8) ... ---[ end trace 0000000000000000 ]--- ... ------------[ cut here ]------------ WARNING: CPU: 1 PID: 1680 at drivers/input/input.c:2291 input_device_enabled+0x68/0x6c Modules linked in: ... CPU: 1 PID: 1680 Comm: kworker/u4:12 Tainted: G W 6.6.0-rc5-next-20231009 #14109 Hardware name: Samsung Exynos (Flattened Device Tree) Workqueue: events_unbound async_run_entry_fn unwind_backtrace from show_stack+0x10/0x14 show_stack from dump_stack_lvl+0x58/0x70 dump_stack_lvl from __warn+0x1a8/0x1cc __warn from warn_slowpath_fmt+0x18c/0x1b4 warn_slowpath_fmt from input_device_enabled+0x68/0x6c input_device_enabled from cyapa_gen3_set_power_mode+0x13c/0x1dc cyapa_gen3_set_power_mode from cyapa_reinitialize+0x10c/0x15c cyapa_reinitialize from cyapa_resume+0x48/0x98 cyapa_resume from dpm_run_callback+0x90/0x298 dpm_run_callback from device_resume+0xb4/0x258 device_resume from async_resume+0x20/0x64 async_resume from async_run_entry_fn+0x40/0x15c async_run_entry_fn from process_scheduled_works+0xbc/0x6a8 process_scheduled_works from worker_thread+0x188/0x454 worker_thread from kthread+0x108/0x140 kthread from ret_from_fork+0x14/0x28 Exception stack(0xf1625fb0 to 0xf1625ff8) ... ---[ end trace 0000000000000000 ]--- The Linux kernel CVE team has assigned CVE-2023-52884 to this issue. Affected and fixed versions =========================== Issue introduced in 5.11 with commit d69f0a43c677 and fixed in 5.15.161 with commit f99809fdeb50 Issue introduced in 5.11 with commit d69f0a43c677 and fixed in 6.1.93 with commit 9400caf566f6 Issue introduced in 5.11 with commit d69f0a43c677 and fixed in 6.6.33 with commit a4c638ab2578 Issue introduced in 5.11 with commit d69f0a43c677 and fixed in 6.9.4 with commit a5fc298fa8f6 Issue introduced in 5.11 with commit d69f0a43c677 and fixed in 6.10-rc1 with commit 7b4e0b39182c 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-52884 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/cyapa.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/f99809fdeb50d65bcbc1661ef391af94eebb8a75 https://git.kernel.org/stable/c/9400caf566f65c703e99d95f87b00c4b445627a7 https://git.kernel.org/stable/c/a4c638ab25786bd5aab5978fe51b2b9be16a4ebd https://git.kernel.org/stable/c/a5fc298fa8f67cf1f0e1fc126eab70578cd40adc https://git.kernel.org/stable/c/7b4e0b39182cf5e677c1fc092a3ec40e621c25b6