CVE-2025-40332

drm/amdkfd: Fix mmap write lock not release

No CVSS score yet EPSS 0.23%

Published 9 Dec 2025 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2025-40332

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

drm/amdkfd: Fix mmap write lock not release

If mmap write lock is taken while draining retry fault, mmap write lock is not released because svm_range_restore_pages calls mmap_read_unlock then returns. This causes deadlock and system hangs later because mmap read or write lock cannot be taken.

Downgrade mmap write lock to read lock if draining retry fault fix this bug.

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from e64be12f8401819662e608efa247638b61d023cd, before e2105ba1c262dcaa9573f11844b6e1e1ca762c3f
affected from f844732e3ad9c4b78df7436232949b8d2096d1a6, before f7569ef1cf978aa87aa81b5e9bf40a77497f3685
affected from f844732e3ad9c4b78df7436232949b8d2096d1a6, before 7574f30337e19045f03126b4c51f525b84e5049e
affected 177660d7ecb34298dab5f0d1efc7e8b02f934551
affected 5a3c09bd25cc0a55ec9c048710d379fa2c84b4e7
affected from 6.12.24, before 6.12.58
affected from 6.13.12, before 6.14
affected from 6.14.3, before 6.15
Other versions: unaffected
Linux
affected 6.15
unaffected before 6.15
unaffected from 6.12.58 up to and including 6.12.*
unaffected from 6.17.8 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-40332 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-40332

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-40332
trivy image --scanners vuln IMAGE | grep CVE-2025-40332

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