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.
[
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"298541461533922498951121102021904405805",
"70770089480889169558420672428062079268",
"207107624043758859592112192279514051699",
"269497462241166787171314966164642660625"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1750f1ec143ebabdbdfa013668665c9d5042c430",
"target": {
"file": "drivers/crypto/hisilicon/debugfs.c"
},
"id": "CVE-2025-40062-20b00f50"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 660.0,
"function_hash": "130963812782498017187087865379416515287"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a87a21a56244b8f4eb357f6bad879247005bbe38",
"target": {
"file": "drivers/crypto/hisilicon/debugfs.c",
"function": "qm_diff_regs_init"
},
"id": "CVE-2025-40062-5a72513d"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"298541461533922498951121102021904405805",
"70770089480889169558420672428062079268",
"207107624043758859592112192279514051699",
"269497462241166787171314966164642660625"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a87a21a56244b8f4eb357f6bad879247005bbe38",
"target": {
"file": "drivers/crypto/hisilicon/debugfs.c"
},
"id": "CVE-2025-40062-c6ad2c10"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 660.0,
"function_hash": "130963812782498017187087865379416515287"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a7836260d5121949ba734e840d42a86ab4a32fcc",
"target": {
"file": "drivers/crypto/hisilicon/debugfs.c",
"function": "qm_diff_regs_init"
},
"id": "CVE-2025-40062-e839d153"
},
{
"signature_type": "Line",
"deprecated": false,
"signature_version": "v1",
"digest": {
"line_hashes": [
"298541461533922498951121102021904405805",
"70770089480889169558420672428062079268",
"207107624043758859592112192279514051699",
"269497462241166787171314966164642660625"
],
"threshold": 0.9
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a7836260d5121949ba734e840d42a86ab4a32fcc",
"target": {
"file": "drivers/crypto/hisilicon/debugfs.c"
},
"id": "CVE-2025-40062-e9abdcfe"
},
{
"signature_type": "Function",
"deprecated": false,
"signature_version": "v1",
"digest": {
"length": 660.0,
"function_hash": "130963812782498017187087865379416515287"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@1750f1ec143ebabdbdfa013668665c9d5042c430",
"target": {
"file": "drivers/crypto/hisilicon/debugfs.c",
"function": "qm_diff_regs_init"
},
"id": "CVE-2025-40062-eee1e525"
}
]