{"id":"CVE-2025-40062","aliases":["CVE-2025-40062"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: hisilicon/qm - set NULL to qm->debug.qm_diff_regs","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: hisilicon/qm - set NULL to qm->debug.qm_diff_regs\n\nWhen the initialization of qm->debug.acc_diff_reg fails,\nthe probe process does not exit. However, after qm->debug.qm_diff_regs is\nfreed, it is not set to NULL. This can lead to a double free when the\nremove process attempts to free it again. Therefore, qm->debug.qm_diff_regs\nshould be set to NULL after it is freed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: hisilicon/qm - set NULL to qm->debug.qm_diff_regs\n\nWhen the initialization of qm->debug.acc_diff_reg fails,\nthe probe process does not exit. However, after qm->debug.qm_diff_regs is\nfreed, it is not set to NULL. This can lead to a double free when the\nremove process attempts to free it again. Therefore, qm->debug.qm_diff_regs\nshould be set to NULL after it is freed.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ncrypto: hisilicon/qm - establecer NULL en qm->debug.qm_diff_regs\n\nCuando la inicialización de qm->debug.acc_diff_reg falla, el proceso de sondeo no finaliza. Sin embargo, después de que qm->debug.qm_diff_regs es liberado, no se establece en NULL. Esto puede llevar a una doble liberación cuando el proceso de eliminación intenta liberarlo de nuevo. Por lo tanto, qm->debug.qm_diff_regs debería establecerse en NULL después de que sea liberado.","source":"nvd"}],"published":"2025-10-28T11:48:33.961Z","modified":"2026-10-19T21:10:00.160Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"eda60520cfe3aba9f088c68ebd5bcbca9fc6ac3c","fixed":"a7836260d5121949ba734e840d42a86ab4a32fcc","status":"affected"},{"type":"git","introduced":"7fc8d9a525b5c3f8dfa5ed50901e764d8ede7e1e","fixed":"1750f1ec143ebabdbdfa013668665c9d5042c430","status":"affected"},{"type":"git","introduced":"8be0913389718e8d27c4f1d4537b5e1b99ed7739","fixed":"a87a21a56244b8f4eb357f6bad879247005bbe38","status":"affected"},{"type":"git","introduced":"8be0913389718e8d27c4f1d4537b5e1b99ed7739","fixed":"7226a0650ad5705bd8d39a11be270fa21ed1e6a5","status":"affected"},{"type":"git","introduced":"8be0913389718e8d27c4f1d4537b5e1b99ed7739","fixed":"f0cafb02de883b3b413d34eb079c9680782a9cc1","status":"affected"},{"type":"git","version":"e0a2d2df9ba7bd6bd7e0a9b6a5e3894f7e8445b3","status":"affected"},{"type":"semver","introduced":"6.1.98","fixed":"6.1.156","status":"affected"},{"type":"semver","introduced":"6.6.39","fixed":"6.6.112","status":"affected"},{"type":"semver","introduced":"6.9.9","fixed":"6.10","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.1.156","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.112","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.53","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.17.3","lastAffected":"6.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/a7836260d5121949ba734e840d42a86ab4a32fcc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1750f1ec143ebabdbdfa013668665c9d5042c430","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a87a21a56244b8f4eb357f6bad879247005bbe38","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7226a0650ad5705bd8d39a11be270fa21ed1e6a5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f0cafb02de883b3b413d34eb079c9680782a9cc1","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-40062","url":"https://www.cve.org/CVERecord?id=CVE-2025-40062","licence":"CVE Terms of Use","modified":"2026-05-23T16:01:17.923Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-40062","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-40062","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:06.940Z","epss":{"score":0.00201,"percentile":0.1053,"date":"2026-12-01T12:00:22.000Z"}}