CVE-2025-40262 Input: imx_sc_key - fix memory corruption on unload

High 7.8 Published Updated

A memory corruption vulnerability in the Linux kernel's imx_sc_key driver allows attackers to cause crashes or potentially execute code via improper pointer handling during module unload.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-40262?

CVE-2025-40262 is a high-severity memory corruption vulnerability in Linux, published on 4 Dec 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Which versions are affected by CVE-2025-40262?

How do I fix CVE-2025-40262?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-40262 being exploited?

There is no known exploitation of CVE-2025-40262 in the wild and no public exploit code.

Sources

Also known as BELL-CVE-2025-40262, DEBIAN-CVE-2025-40262, GHSA-2m33-w232-qf59, ROOT-OS-DEBIAN-12-CVE-2025-40262, ROOT-OS-DEBIAN-13-CVE-2025-40262, ROOT-OS-UBUNTU-2204-CVE-2025-40262 and 2 more.

Is CVE-2025-40262 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free