# CVE-2025-40332: drm/amdkfd: Fix mmap write lock not release

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 15% of CVEs (2026-12-01)
- Published: 2025-12-09T04:09:49.164Z
- Modified: 2026-10-14T22:10:00.210Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from e64be12f8401819662e608efa247638b61d023cd before e2105ba1c262dcaa9573f11844b6e1e1ca762c3f; from f844732e3ad9c4b78df7436232949b8d2096d1a6 before f7569ef1cf978aa87aa81b5e9bf40a77497f3685; from f844732e3ad9c4b78df7436232949b8d2096d1a6 before 7574f30337e19045f03126b4c51f525b84e5049e; 177660d7ecb34298dab5f0d1efc7e8b02f934551; 5a3c09bd25cc0a55ec9c048710d379fa2c84b4e7; from 6.12.24 before 6.12.58; from 6.13.12 before 6.14; from 6.14.3 before 6.15; 6.15 (not affected: before 6.15; from 6.12.58 up to 6.12.*; from 6.17.8 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/e2105ba1c262dcaa9573f11844b6e1e1ca762c3f>
- <https://git.kernel.org/stable/c/f7569ef1cf978aa87aa81b5e9bf40a77497f3685>
- <https://git.kernel.org/stable/c/7574f30337e19045f03126b4c51f525b84e5049e>

## Sources

- CVE List: [CVE-2025-40332](https://www.cve.org/CVERecord?id=CVE-2025-40332), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2025-40332](https://nvd.nist.gov/vuln/detail/CVE-2025-40332), Public domain, modified 2026-10-14

---

Page: https://cve.day/CVE-2025-40332 · Whole record: https://cve.day/CVE-2025-40332.json · Rebuilt by cve.day 2026-11-25T22:59:08.473Z
