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

Published Dec 9, 2025
·
Updated

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 svmrangerestorepages calls mmapreadunlock 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.

Affected Software

2 affected components
linux/kernel
Microsoft azl3 kernel 6.6.117.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    In drm/amdkfd, downgrade the mmap write lock to a read lock when draining a retry fault, and ensure svm_range_restore_pages does not return while leaving the mmap write lock unreleased or call mmap_read_unlock for an active write lock.

Event History

Dec 9, 2025
CVE Published
via MITRE·04:09 AM
Data Sourced
via MITRE·04:09 AM
Description
Data Sourced
via NVD·04:17 PM
Description
Dec 10, 2025
Data Sourced
via Microsoft·01:02 AM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-40332?

CVE-2025-40332 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2025-40332?

To fix CVE-2025-40332, update your Linux kernel to the latest stable version that contains the patches.

3

What are the potential impacts of CVE-2025-40332?

CVE-2025-40332 may lead to a denial of service condition due to the improper handling of mmap write locks.

4

Which versions of Linux kernel are affected by CVE-2025-40332?

CVE-2025-40332 affects multiple versions of the Linux kernel prior to the application of the relevant patch.

5

Is CVE-2025-40332 exploitative in nature?

CVE-2025-40332 could be exploited under specific conditions to impact system stability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203