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 E129913A88D for ; Wed, 18 Sep 2024 07:17:21 +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=1726643842; cv=none; b=hn+GHpvCahKi4hVP+OKobehvRLOwaHll+G2pQ3o/LIMBsu5VUWPR1ga+6CGSx/zlhF+IkIwza98lGnm7T/MuN9a4Zjpa9xnXYKaoNO1IjtFzRcyMoNaPGQHvZPEwKujd2Kl4ZWP2REsUUdyLFjaVFCh9rWYTN3YBSSbCfub3Qhg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726643842; c=relaxed/simple; bh=3xrBvxVNa35Hs6jIkvdweoX7GtOf+Ozw4VruBhN7Nrs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MYINoHcwCyNHOt5SonkHLYGmvrgl2CTt1AxIjf9ysWyJ6CfaEbE17kAJnS1JVq81qMtI3C4OhhUzTXrZlQAGFjbhUp+ypYtiLeIj/JdghO3wHm4HnzsLc2f9HyNJ4GMzXh1PJcQrw35Mat0jKL//A2+sIRPpwzQ4wpD1CWsSOgU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2o4I/ro7; 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="2o4I/ro7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E8C65C4CEC3; Wed, 18 Sep 2024 07:17:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726643841; bh=3xrBvxVNa35Hs6jIkvdweoX7GtOf+Ozw4VruBhN7Nrs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=2o4I/ro7V9/kbhi/6/pXA/KxmByZHlucls7SHTJcDRNu2g9wQFdIWvPtVAw2u3pxY 5wE5XrjkTlwfu304ExurwmkrBxN2h7zmLqUYShv7YyGlSV4WSROXvbwc6Y/XOBtV4+ yKIvUmMvJcO3nVacgnPWY1GnPLS/MEt+YLg1z+4M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46745: Input: uinput - reject requests with unreasonable number of slots Date: Wed, 18 Sep 2024 09:16:40 +0200 Message-ID: <2024091836-CVE-2024-46745-7b05@gregkh> X-Mailer: git-send-email 2.46.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=2820; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3xrBvxVNa35Hs6jIkvdweoX7GtOf+Ozw4VruBhN7Nrs=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmv6kJcz66Wz70qGbvN1iAke3/21P5WYW2HzDkzHn68s u8/w8SrHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRYwwMc7jN/cts9fPrSpe5 6nwp1XjsoXbrLcOClfYnRHd+ZN3x9OOuxINX7pSI1xjlAwA= 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: uinput - reject requests with unreasonable number of slots When exercising uinput interface syzkaller may try setting up device with a really large number of slots, which causes memory allocation failure in input_mt_init_slots(). While this allocation failure is handled properly and request is rejected, it results in syzkaller reports. Additionally, such request may put undue burden on the system which will try to free a lot of memory for a bogus request. Fix it by limiting allowed number of slots to 100. This can easily be extended if we see devices that can track more than 100 contacts. The Linux kernel CVE team has assigned CVE-2024-46745 to this issue. Affected and fixed versions =========================== Fixed in 4.19.322 with commit 9c6d189f0c1c Fixed in 5.4.284 with commit 597ff930296c Fixed in 5.10.226 with commit 51fa08edd800 Fixed in 5.15.167 with commit 9719687398de Fixed in 6.1.110 with commit 61df76619e27 Fixed in 6.6.51 with commit a4858b00a1ec Fixed in 6.10.10 with commit d76fc0f0b18d Fixed in 6.11 with commit 206f533a0a7c 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-2024-46745 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/misc/uinput.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/9c6d189f0c1c59ba9a32326ec82a0b367a3cd47b https://git.kernel.org/stable/c/597ff930296c4c8fc6b6a536884d4f1a7187ec70 https://git.kernel.org/stable/c/51fa08edd80003db700bdaa099385c5900d27f4b https://git.kernel.org/stable/c/9719687398dea8a6a12a10321a54dd75eec7ab2d https://git.kernel.org/stable/c/61df76619e270a46fd427fbdeb670ad491c42de2 https://git.kernel.org/stable/c/a4858b00a1ec57043697fb935565fe267f161833 https://git.kernel.org/stable/c/d76fc0f0b18d49b7e721c9e4975ef4bffde2f3e7 https://git.kernel.org/stable/c/206f533a0a7c683982af473079c4111f4a0f9f5e