CVE-2025-40062 Details
Description
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.
A double free vulnerability has been identified in the Linux kernel's Hisilicon QM crypto driver. This issue arises because the initialization of the 'qm->debug.acc_diff_reg' can fail, causing the probe process to continue without properly handling the error. After the 'qm->debug.qm_diff_regs' is freed, it is not reset to NULL, leading to a double free when the removal process tries to free it again. The vulnerability affects the Linux kernel stable tree.
The vulnerability has been addressed in the Linux kernel stable tree. Users can upgrade to the latest version to mitigate this issue.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 28, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/1750f1ec143ebabdbdfa013668665c9d5042c430 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/7226a0650ad5705bd8d39a11be270fa21ed1e6a5 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a7836260d5121949ba734e840d42a86ab4a32fcc | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/a87a21a56244b8f4eb357f6bad879247005bbe38 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/f0cafb02de883b3b413d34eb079c9680782a9cc1 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | All versions |
CPE
Remediation
| |
| Hisilicon qm | All versions |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Oct 28, 2025 | New CVE Received | kernel.org |
Volerion