Linux
drm/amdkfd: Check bounds on CRIU restore queue type and mqd size
In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: Check bounds on CRIU restore queue type and mqd size We weren't checking whether the values provided in the private data in kfd CRIU restore were within bounds. For queue type, add a KFD_QUEUE_TYPE_MAX and ensure the provided type is less than it. For mqd_size, add new function mqd_size_from_queue_type and confirm that the provided mqd_size matches expectations. (cherry picked from commit f19d8086f6644083c913d70bfdeee20e1b6f46a5)
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < dcd8f5e049ff31e73f91fbccd9a9b9d725a2ff3e
- >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < 2b817c0dfc653bf33d0e0ab8155ff7807a617487
- >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < 1956aa246c65c5895589664ccb37d0710aa8d304
- >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < fd1691ec62701c982ea32e749678988c67fd4c21
- >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < cc10a5839756982504ee8568fc1e1625962ab7f8
- >= 42c6c48214b726c30918e8dc80e2168607d13ae4, < 47ea05f246bebc81c7796f56265cffd812cf0601
Fixed in dcd8f5e049ff31e73f91fbccd9a9b9d725a2ff3e, 2b817c0dfc653bf33d0e0ab8155ff7807a617487, 1956aa246c65c5895589664ccb37d0710aa8d304, fd1691ec62701c982ea32e749678988c67fd4c21, cc10a5839756982504ee8568fc1e1625962ab7f8, 47ea05f246bebc81c7796f56265cffd812cf0601
- 5.18
Fixed in 0, 6.1.191, 6.6.160, 6.12.114, 6.18.42, 7.1.6, 7.2
Mitigation
Upgrade Linux to dcd8f5e049ff31e73f91fbccd9a9b9d725a2ff3e or 2b817c0dfc653bf33d0e0ab8155ff7807a617487 or 1956aa246c65c5895589664ccb37d0710aa8d304 or fd1691ec62701c982ea32e749678988c67fd4c21 or cc10a5839756982504ee8568fc1e1625962ab7f8 or 47ea05f246bebc81c7796f56265cffd812cf0601 or later.
Upgrade Linux to 0 or 6.1.191 or 6.6.160 or 6.12.114 or 6.18.42 or 7.1.6 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.