[<prev] [next>] [day] [month] [year] [list]
Message-ID: <2025120434-CVE-2025-40262-ba54@gregkh>
Date: Thu, 4 Dec 2025 16:57:43 +0100
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: linux-cve-announce@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...nel.org>
Subject: CVE-2025-40262: Input: imx_sc_key - fix memory corruption on unload
From: Greg Kroah-Hartman <gregkh@...nel.org>
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
Powered by blists - more mailing lists