# CVE-2025-40262: Input: imx\_sc\_key - fix memory corruption on unload

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 9, 2026-11-26)
- **Published:** 2025-12-04T16:08:22.043Z
- **Modified:** 2026-10-18T18:10:00.100Z

## Who should check

- Anyone running Linux \>= 768062fd1284529212daffd360314e9aa93abb62, \< 3e96803b169dc948847f0fc2bae729a80914eb7b; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 4ce5218b101205b3425099fe3df88a61b58f9cc2; \>= 768062fd1284529212daffd360314e9aa93abb62, \< a155292c3ce722036014da5477ee0e4c87b5e6b3; \>= 768062fd1284529212daffd360314e9aa93abb62, \< ca9a08de9b294422376f47ade323d69590dbc6f2; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 56881294915a6e866d31a46f9bcb5e19167cfbaa; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 6524a15d33951b18ac408ebbcb9c16e14e21c336; \>= 768062fd1284529212daffd360314e9aa93abb62, \< d83f1512758f4ef6fc5e83219fe7eeeb6b428ea4
- Anyone running Linux 5.8

## 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 &.

## Affected and fixed versions

- Linux: \>= 768062fd1284529212daffd360314e9aa93abb62, \< 3e96803b169dc948847f0fc2bae729a80914eb7b; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 4ce5218b101205b3425099fe3df88a61b58f9cc2; \>= 768062fd1284529212daffd360314e9aa93abb62, \< a155292c3ce722036014da5477ee0e4c87b5e6b3; \>= 768062fd1284529212daffd360314e9aa93abb62, \< ca9a08de9b294422376f47ade323d69590dbc6f2; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 56881294915a6e866d31a46f9bcb5e19167cfbaa; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 6524a15d33951b18ac408ebbcb9c16e14e21c336; \>= 768062fd1284529212daffd360314e9aa93abb62, \< d83f1512758f4ef6fc5e83219fe7eeeb6b428ea4 (cvelist)
- Linux: 5.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-40262. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-40262.md
Affected: Linux >= 768062fd1284529212daffd360314e9aa93abb62, < 3e96803b169dc948847f0fc2bae729a80914eb7b; >= 768062fd1284529212daffd360314e9aa93abb62, < 4ce5218b101205b3425099fe3df88a61b58f9cc2; >= 768062fd1284529212daffd360314e9aa93abb62, < a155292c3ce722036014da5477ee0e4c87b5e6b3; >= 768062fd1284529212daffd…
Fixed in: Linux 3e96803b169dc948847f0fc2bae729a80914eb7b, Linux 4ce5218b101205b3425099fe3df88a61b58f9cc2, Linux 56881294915a6e866d31a46f9bcb5e19167cfbaa, Linux 6524a15d33951b18ac408ebbcb9c16e14e21c336

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-40262 being exploited?

There is no confirmed exploitation: CVE-2025-40262 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-40262?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-40262?

Linux \>= 768062fd1284529212daffd360314e9aa93abb62, \< 3e96803b169dc948847f0fc2bae729a80914eb7b; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 4ce5218b101205b3425099fe3df88a61b58f9cc2; \>= 768062fd1284529212daffd360314e9aa93abb62, \< a155292c3ce722036014da5477ee0e4c87b5e6b3; \>= 768062fd1284529212daffd360314e9aa93abb62, \< ca9a08de9b294422376f47ade323d69590dbc6f2; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 56881294915a6e866d31a46f9bcb5e19167cfbaa; \>= 768062fd1284529212daffd360314e9aa93abb62, \< 6524a15d33951b18ac408ebbcb9c16e14e21c336; \>= 768062fd1284529212daffd360314e9aa93abb62, \< d83f1512758f4ef6fc5e83219fe7eeeb6b428ea4; Linux 5.8.

### Is there a fix for CVE-2025-40262?

Yes. Fixed in Linux 3e96803b169dc948847f0fc2bae729a80914eb7b, Linux 4ce5218b101205b3425099fe3df88a61b58f9cc2, Linux 56881294915a6e866d31a46f9bcb5e19167cfbaa, Linux 6524a15d33951b18ac408ebbcb9c16e14e21c336. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-40262?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/3e96803b169dc948847f0fc2bae729a80914eb7b>
- other: <https://git.kernel.org/stable/c/4ce5218b101205b3425099fe3df88a61b58f9cc2>
- other: <https://git.kernel.org/stable/c/a155292c3ce722036014da5477ee0e4c87b5e6b3>
- other: <https://git.kernel.org/stable/c/ca9a08de9b294422376f47ade323d69590dbc6f2>
- other: <https://git.kernel.org/stable/c/56881294915a6e866d31a46f9bcb5e19167cfbaa>
- other: <https://git.kernel.org/stable/c/6524a15d33951b18ac408ebbcb9c16e14e21c336>
- other: <https://git.kernel.org/stable/c/d83f1512758f4ef6fc5e83219fe7eeeb6b428ea4>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-253495.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-40262>

HTML: <https://flawdb.com/CVE-2025-40262> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-40262>
