CVE-2025-40062
In the Linux kernel, the following vulnerability has been resolved: crypto: hisilicon/qm - set NULL to qm->debug.qm_diff_regs When the initialization of qm->debug.acc_diff_reg fails, the probe process does not exit. However, after qm->debug.qm_diff_regs is freed, it is not set to NULL. This can lead to a double free when the remove process attempts to free it again. Therefore, qm->debug.qm_diff_regs should be set to NULL after it is freed.
Affected versions
Linux kernel versions
6.1.98,
6.6.39,
6.9.9,
6.10
and later are affected. Fixed in
6.1.156,
6.6.112,
6.12.53,
6.17.3,
6.18
and their respective stable series.
References
The following references provide additional information about CVE-2025-40062 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/1750f1ec143ebabdbdfa013668665c9d5042c430
-
PatchKernel patch commithttps://git.kernel.org/stable/c/7226a0650ad5705bd8d39a11be270fa21ed1e6a5
-
PatchKernel patch commithttps://git.kernel.org/stable/c/a7836260d5121949ba734e840d42a86ab4a32fcc
Frequently asked questions
-
What is CVE-2025-40062?
CVE-2025-40062 is a unscored severity Linux kernel vulnerability . It affects Linux kernel versions from 6.1.98 onward and has been patched in 6.1.156, 6.6.112, 6.12.53 and others. CVE-2025-40062 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
Is there a patch available for CVE-2025-40062?
Yes — CVE-2025-40062 has been patched. Fixed versions include 6.1.156, 6.6.112, 6.12.53 and others. If you are running Linux kernel 6.1.98 or later up to the fix versions, apply the relevant patch for your kernel branch.
-
Is CVE-2025-40062 actively exploited?
No — CVE-2025-40062 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.