drm/amdgpu: fix amdgpu_hmm_range_get_pages
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/amdgpu: fix amdgpu_hmm_range_get_pages
The notifier sequence must only be read once or otherwise we could work with invalid pages.
While at it also fix the coding style, e.g. drop the pre-initialized return value and use the common define for 2G range.
(cherry picked from commit c08972f555945cda57b0adb72272a37910153390)
From the CVE record · Linux
The Linux kernel's amdgpu_hmm_range_get_pages can work with invalid pages if it reads the notifier sequence more than once. The input does not specify what an attacker could achieve or whether exploitation requires local access, authentication, or user interaction.
Engineers running Linux kernels with the amdgpu component should check their systems; affected versions are not specified.