drm/ttm: Fix ttm_bo_shrink() infinite LRU walk on backup failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.577.0.107.1In the Linux kernel, the following vulnerability has been resolved:
drm/ttm: Fix ttm_bo_shrink() infinite LRU walk on backup failure
Apply the same fix as b2ed01e7ad ("drm/ttm: Fix ttm_bo_swapout() infinite LRU walk on swapout failure") to the ttm_bo_shrink() path.
Move del_bulk_move from before the backup to after success only, using ttm_resource_del_bulk_move_unevictable() since the resource is now unevictable once fully backed up.
From the CVE record · Linux
The Linux kernel’s drm/ttm ttm_bo_shrink() path can enter an infinite LRU walk when a backup fails. The input does not establish how an attacker could trigger the failure or whether access or user interaction is required.
Engineers running the Linux kernel should check their version; affected versions are not specified in the input.