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 8823143172 for ; Wed, 18 Jun 2025 11:02:19 +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=1750244539; cv=none; b=Th47rOP5XtdbDjJdOei4zsLcJlRVr3m/Hfr1WVOFxRlOFt4w1o8yAJ5R30aRAZeHe4FVgZ9tCKddqJApDvWcLO5PXa7hXsRDtQ5Pn8JqhThqh8ykH1tuyaYPv3IQNtvPXJ01x60OmWBHlaodk4/70W2uZy+BxzFhbe2DeeVdXX4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750244539; c=relaxed/simple; bh=7dafsC0r4Zi6owjaMNYUqX03uAS5TegdYMcUgYwRV8Q=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DR1aAPYH1g079KlnnWXR5UWllG8t4ewKwFv1wEcHO+nhU+grGPDpuGhgoVf0SpkE+eLSruyvXB89USVh5tEErWSLIC5FEaWJROYNrGqac2/0JCYu8IixSWhZpDMPyoWk6b4x4BFCN7ydkje6GD42Op/56AJh1I6q5I3kySICULw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DnngWhdf; 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="DnngWhdf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CA4FCC4CEE7; Wed, 18 Jun 2025 11:02:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750244539; bh=7dafsC0r4Zi6owjaMNYUqX03uAS5TegdYMcUgYwRV8Q=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DnngWhdfCmyR8L6k7Q4Q/ZLwzcUVufvXoLisX7UCYGt3407kocQyA58c5vPMbTdU0 rOa2t43t+TemaYm9JfvkXuan0tbu/IbHcZtnbwUtl+0aV+aJ/lHuDPD4cXT1xCnJMF tlJ/0jRGPMzQmSSuRRhBjfKYaf1m77zul3BHSpKs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49954: Input: iforce - wake up after clearing IFORCE_XMIT_RUNNING flag Date: Wed, 18 Jun 2025 13:00:19 +0200 Message-ID: <2025061811-CVE-2022-49954-97f4@gregkh> X-Mailer: git-send-email 2.49.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=3070; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=4qfVW83ZT0599ySZ6sIJfhxkCDFiLN8BMlzqnHp+frg=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc6wL2+y/PY/puvmNOff9VFUBtsurnOy43sk0B0Re3 yVRcflhRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykyIZhQWuDkcyVjc8dt+os 2SmhKycesnyVCsOCXY4W15LTQ5UMclPvvWYxvN/wIfQ4AA== 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: iforce - wake up after clearing IFORCE_XMIT_RUNNING flag syzbot is reporting hung task at __input_unregister_device() [1], for iforce_close() waiting at wait_event_interruptible() with dev->mutex held is blocking input_disconnect_device() from __input_unregister_device(). It seems that the cause is simply that commit c2b27ef672992a20 ("Input: iforce - wait for command completion when closing the device") forgot to call wake_up() after clear_bit(). Fix this problem by introducing a helper that calls clear_bit() followed by wake_up_all(). The Linux kernel CVE team has assigned CVE-2022-49954 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.33 with commit c2b27ef672992a206e5b221b8676972dd840ffa5 and fixed in 5.4.213 with commit d186c65599bff0222da37b9215784ddfe39f9e1b Issue introduced in 2.6.33 with commit c2b27ef672992a206e5b221b8676972dd840ffa5 and fixed in 5.10.142 with commit b271090eea3899399e2adcf79c9c95367d472b03 Issue introduced in 2.6.33 with commit c2b27ef672992a206e5b221b8676972dd840ffa5 and fixed in 5.15.66 with commit df1b53bc799d58f79701c465505a206c72ad4ab8 Issue introduced in 2.6.33 with commit c2b27ef672992a206e5b221b8676972dd840ffa5 and fixed in 5.19.8 with commit b533b9d3a0d1327cbb31c201dc8dbbf98c8bfe3c Issue introduced in 2.6.33 with commit c2b27ef672992a206e5b221b8676972dd840ffa5 and fixed in 6.0 with commit 98e01215708b6d416345465c09dce2bd4868c67a 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-2022-49954 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/joystick/iforce/iforce-serio.c drivers/input/joystick/iforce/iforce-usb.c drivers/input/joystick/iforce/iforce.h 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/d186c65599bff0222da37b9215784ddfe39f9e1b https://git.kernel.org/stable/c/b271090eea3899399e2adcf79c9c95367d472b03 https://git.kernel.org/stable/c/df1b53bc799d58f79701c465505a206c72ad4ab8 https://git.kernel.org/stable/c/b533b9d3a0d1327cbb31c201dc8dbbf98c8bfe3c https://git.kernel.org/stable/c/98e01215708b6d416345465c09dce2bd4868c67a