CVE-2025-40062

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

No CVSS score yet EPSS 0.20%

Published 28 Oct 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2025-40062

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-40062 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.5% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from eda60520cfe3aba9f088c68ebd5bcbca9fc6ac3c, before a7836260d5121949ba734e840d42a86ab4a32fcc
affected from 7fc8d9a525b5c3f8dfa5ed50901e764d8ede7e1e, before 1750f1ec143ebabdbdfa013668665c9d5042c430
affected from 8be0913389718e8d27c4f1d4537b5e1b99ed7739, before a87a21a56244b8f4eb357f6bad879247005bbe38
affected from 8be0913389718e8d27c4f1d4537b5e1b99ed7739, before 7226a0650ad5705bd8d39a11be270fa21ed1e6a5
affected from 8be0913389718e8d27c4f1d4537b5e1b99ed7739, before f0cafb02de883b3b413d34eb079c9680782a9cc1
affected e0a2d2df9ba7bd6bd7e0a9b6a5e3894f7e8445b3
affected from 6.1.98, before 6.1.156
affected from 6.6.39, before 6.6.112
affected from 6.9.9, before 6.10
Other versions: unaffected
Linux
affected 6.10
unaffected before 6.10
unaffected from 6.1.156 up to and including 6.1.*
unaffected from 6.6.112 up to and including 6.6.*
unaffected from 6.12.53 up to and including 6.12.*
unaffected from 6.17.3 up to and including 6.17.*
unaffected 6.18 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-40062 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40062

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-40062
trivy image --scanners vuln IMAGE | grep CVE-2025-40062

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-40062 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.