Skip to main content
← All vulnerabilities
CVE-2025-40062

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 6.1.156, 6.6.112, 6.10
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 6.1.98 · fixed in 6.1.156; From 6.6.39 · fixed in 6.6.112; From 6.9.9 · fixed in 6.10

  • Linux Linux

    6.10

References 5

git.kernel.org