CVE-2025-40332: drm/amdkfd: Fix mmap write lock not release
Vulnerability summary
CVE-2025-40332 is a medium (CVSS 5.7) vulnerability in linux. EPSS estimates a 0.22% chance of exploitation in the next 30 days, higher than 12.4% of scored vulnerabilities.
Not severe (CVSS 5.7, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 13Timeline
- 09-12-2025PublishedVulnerability first disclosed.
- 23-05-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
0.22%
Chance of exploitation in the next 30 days
Percentile
12%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.22% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeNo weakness data has been published for this record.
Affected systems
Known conditions: local access, low-privilege account, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu156 products
- linuxAll versions (No fix recorded) | < 6.17.0-14.14
- linux-allwinner-5.19All versions (No fix recorded)
- linux-awsAll versions (No fix recorded) | < 6.17.0-1007.7
- linux-aws-5.0All versions (No fix recorded)
- linux-aws-5.11All versions (No fix recorded)
Debian1 product
- linux< 6.12.63-1 | < 6.17.8-1
Linux1 product
- linux≥ e64be12f8401819662e608efa247638b61d023cd, < e2105ba1c262dcaa9573f11844b6e1e1ca762c3f | ≥ f844732e3ad9c4b78df7436232949b8d2096d1a6, < f7569ef1cf978aa87aa81b5e9bf40a77497f3685 | ≥ f844732e3ad9c4b78df7436232949b8d2096d1a6, < 7574f30337e19045f03126b4c51f525b84e5049e | 177660d7ecb34298dab5f0d1efc7e8b02f934551 | 5a3c09bd25cc0a55ec9c048710d379fa2c84b4e7 | ≥ 6.12.24, < 6.12.58 | ≥ 6.13.12, < 6.14 | ≥ 6.14.3, < 6.15 | 6.15
3 vendors · 158 products