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 290DA8821 for ; Thu, 4 Dec 2025 16:08:40 +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=1764864521; cv=none; b=syuIGK7G2x8+Pp82E+x9Nujg9NiHNFunxiv97W7ajv/y/1jchHObCY6FqynUILw+R4Lqsm1vrEyfFOT8l1ae+Zse12xc5AM3i13Bxf7kddKV7oRWbL5A2vqhckOoECP5SKo/DfQaYF+CwYVxzjmYKDM3TBafb+6oyTuXtT4TVrk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764864521; c=relaxed/simple; bh=Jd8YVkcK2uTxyri8Xa3U7zxjA9VqC4XWpVISqGSC6R4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WumlIb56dP+KkD0jyqutlWUfkOLN+oe8+nU0wLkcBV9o/l3hsJUJocOxdMSSwgYMInsxSjr1r/eOOGUcKa6AqB91m4fG5YevQc51Oc8nYgER9l5WfXHb9n8S93KUTP8EHed5tY/hySVYp4pco67zX8WXkA5xrshFbfuu10k9CRo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uR5cV7Xp; 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="uR5cV7Xp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5CAEEC4CEFB; Thu, 4 Dec 2025 16:08:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764864520; bh=Jd8YVkcK2uTxyri8Xa3U7zxjA9VqC4XWpVISqGSC6R4=; h=From:To:Cc:Subject:Date:Reply-To:From; b=uR5cV7XpPorOFJzpMqihm5sZbc5599AcpxJQ9LNpzuNnPbofHfzPYz0x0Fi3Vrf6G SvsMPjtFnaY/42BY5Bk2wk+ITmCRogeQwCsWRrcNIolJ46yeaIlO4KXxujDd+LLJMQ oTZ585q3s8qAlPaaEQM0HabKER8k2UDxt6Y8bAKg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40262: Input: imx_sc_key - fix memory corruption on unload Date: Thu, 4 Dec 2025 16:57:43 +0100 Message-ID: <2025120434-CVE-2025-40262-ba54@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=2427; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JpCwLSM0Ef3+bhCEaziWWU2MNTGGUnVN16Ks6i7Xg5E=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmG6/NsWX/NMuub/G1L6NbGjSuVg/ZffPoj2833WWylq R7jTseGjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIFjGG+THf/60Q21p3jSf4 ttadgpcHXFjCahjmOy+cfvsBz/8pxdpfOYMmnfZZv+5XLQA= 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: imx_sc_key - fix memory corruption on unload This is supposed to be "priv" but we accidentally pass "&priv" which is an address in the stack and so it will lead to memory corruption when the imx_sc_key_action() function is called. Remove the &. The Linux kernel CVE team has assigned CVE-2025-40262 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 768062fd1284529212daffd360314e9aa93abb62 and fixed in 6.6.118 with commit ca9a08de9b294422376f47ade323d69590dbc6f2 Issue introduced in 5.8 with commit 768062fd1284529212daffd360314e9aa93abb62 and fixed in 6.12.60 with commit 56881294915a6e866d31a46f9bcb5e19167cfbaa Issue introduced in 5.8 with commit 768062fd1284529212daffd360314e9aa93abb62 and fixed in 6.17.10 with commit 6524a15d33951b18ac408ebbcb9c16e14e21c336 Issue introduced in 5.8 with commit 768062fd1284529212daffd360314e9aa93abb62 and fixed in 6.18 with commit d83f1512758f4ef6fc5e83219fe7eeeb6b428ea4 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-40262 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/keyboard/imx_sc_key.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/ca9a08de9b294422376f47ade323d69590dbc6f2 https://git.kernel.org/stable/c/56881294915a6e866d31a46f9bcb5e19167cfbaa https://git.kernel.org/stable/c/6524a15d33951b18ac408ebbcb9c16e14e21c336 https://git.kernel.org/stable/c/d83f1512758f4ef6fc5e83219fe7eeeb6b428ea4