CVE-2025-40062

Source
https://cve.org/CVERecord?id=CVE-2025-40062
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40062.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-40062
Downstream
Related
Published
2025-10-28T11:48:33.961Z
Modified
2026-03-20T12:43:09.925229Z
Summary
crypto: hisilicon/qm - set NULL to qm->debug.qm_diff_regs
Details

In the Linux kernel, the following vulnerability has been resolved:

crypto: hisilicon/qm - set NULL to qm->debug.qmdiffregs

When the initialization of qm->debug.accdiffreg fails, the probe process does not exit. However, after qm->debug.qmdiffregs 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.qmdiffregs should be set to NULL after it is freed.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40062.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
eda60520cfe3aba9f088c68ebd5bcbca9fc6ac3c
Fixed
a7836260d5121949ba734e840d42a86ab4a32fcc
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7fc8d9a525b5c3f8dfa5ed50901e764d8ede7e1e
Fixed
1750f1ec143ebabdbdfa013668665c9d5042c430
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
8be0913389718e8d27c4f1d4537b5e1b99ed7739
Fixed
a87a21a56244b8f4eb357f6bad879247005bbe38
Fixed
7226a0650ad5705bd8d39a11be270fa21ed1e6a5
Fixed
f0cafb02de883b3b413d34eb079c9680782a9cc1
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
e0a2d2df9ba7bd6bd7e0a9b6a5e3894f7e8445b3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40062.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.1.156
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.112
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.53
Type
ECOSYSTEM
Events
Introduced
6.10.0
Fixed
6.17.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-40062.json"