Back

MEDIUM

drm/amdgpu: fix AMDGPU_INFO_READ_MMR_REG

Published Jun 26, 2026

Description

There were multiple issues in that code.

First of all the order between the reset semaphore and the mm_lock was wrong (e.g. copy_to_user) was called while holding the lock.

Then we allocated memory while holding the reset semaphore which is also a pretty big bug and can deadlock.

Then we used down_read_trylock() instead of waiting for the reset to finish.

(cherry picked from commit 361b6e6b303d4b691f6c5974d3eaab67ca6dd90e)

Affected products

Remediation

No remediation recorded yet.

Metrics

Weaknesses (2)

References (10)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Jun 26, 2026
Updated Jun 26, 2026
Reserved Jun 9, 2026
NVD
Status Analyzed
Modified Jul 8, 2026
Red Hat
Severity Moderate
Public date Jun 26, 2026