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 D07221E51FE for ; Thu, 1 May 2025 14:12:50 +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=1746108770; cv=none; b=PK4E0Ykee1hI/uRlRBAUGe3PSxHHBFLiNhc3C4kFbi6x9Ff6kSkL/awctfB82KSh6CWBw/qh6L6By37VvxAxASFudBvc5n1NYQKpA6nHQe9nzW4z9n5hzX9bSfvCnoEVPlUjl8eo0xvsyrrzt+eYKlDIcs9EZCMqA++xHoIA0dQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108770; c=relaxed/simple; bh=GqBsEs29f5sidyVyVX+ZwRUvkmSDmFouQHIdYeZLtlU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n/opqHhzF6TEglLthqVSj+6cEuv/+wfCV6J9gVeTBSDqZ7NkAHZo9eIRWQRKOif2MCkdraHihg5hdRr1MYrQ8XvLR30QT1mXll+eWzFWki13fDOj7DljMm7K3hBLydPCZWL6ShhK2ydyPWve75ZFy/3JSiFKbM1WraMLx3V+Z/w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pNmwDgzF; 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="pNmwDgzF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4075CC4CEEE; Thu, 1 May 2025 14:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108770; bh=GqBsEs29f5sidyVyVX+ZwRUvkmSDmFouQHIdYeZLtlU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=pNmwDgzFO7v0CcA7I20RyK9Kj0Z9pYM6u1X3pNBWBjH3XmLXS4mCvV5IKARPDq6Jk UppdXAzA33R2NHfDo4WEEi6gQi9CQEM7aNTxBlohFaOm6NOFFRsr11/HjaeiJHKAbD 7dnU8D9xc5Ot2GcTGtdLQtSYJBqlwfO1UVuNBaMc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49777: Input: i8042 - fix leaking of platform device on module removal Date: Thu, 1 May 2025 16:09:27 +0200 Message-ID: <2025050117-CVE-2022-49777-34e7@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=2882; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/8BKo7X2WXB/EazBiuBXeEMdXlNL9I0/EmjQ0qkjSWE=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDX3u+3jWuB5o/XR32uVrW7b8bDgnNPtcW1X2zf4rp 43Y3gYJdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBErIoYFvTP6Kxxl7+q6air vX5RrZ+KC+PlowwLetZxqGR9eex77pyrsHiY9onNxxyfAwA= 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: i8042 - fix leaking of platform device on module removal Avoid resetting the module-wide i8042_platform_device pointer in i8042_probe() or i8042_remove(), so that the device can be properly destroyed by i8042_exit() on module unload. The Linux kernel CVE team has assigned CVE-2022-49777 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19.224 with commit 68fdb0499653a2519691e645fcb72944f6e1e220 and fixed in 4.19.267 with commit 81df118e79b2136b5c016394f67a051dc508b7b6 Issue introduced in 5.4.170 with commit f93d5dca7d84a4c725acf87db74b12c5686bd83e and fixed in 5.4.225 with commit 4f348b60c79671eee33c1389efe89109c93047da Issue introduced in 5.10.90 with commit bb672eff7447f8a26c8a66ddee613afd279bd760 and fixed in 5.10.156 with commit 3f25add5ecf88de0f8ff2b27b6c0731a1f1b38ed Issue introduced in 5.15.13 with commit dd33054e4c18a54645072c7a62d46cdf6d05dace and fixed in 5.15.80 with commit d5f7f6e63fed9c2ed09725d90059a28907e197e3 Issue introduced in 5.16 with commit 9222ba68c3f4065f6364b99cc641b6b019ef2d42 and fixed in 6.0.10 with commit a32cd7feb0127bf629a82686b6e2c128139a86e5 Issue introduced in 5.16 with commit 9222ba68c3f4065f6364b99cc641b6b019ef2d42 and fixed in 6.1 with commit 81cd7e8489278d28794e7b272950c3e00c344e44 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-49777 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/serio/i8042.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/81df118e79b2136b5c016394f67a051dc508b7b6 https://git.kernel.org/stable/c/4f348b60c79671eee33c1389efe89109c93047da https://git.kernel.org/stable/c/3f25add5ecf88de0f8ff2b27b6c0731a1f1b38ed https://git.kernel.org/stable/c/d5f7f6e63fed9c2ed09725d90059a28907e197e3 https://git.kernel.org/stable/c/a32cd7feb0127bf629a82686b6e2c128139a86e5 https://git.kernel.org/stable/c/81cd7e8489278d28794e7b272950c3e00c344e44