drm/imagination: clamp freelist reconstruction requests
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 |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drm/imagination: clamp freelist reconstruction requests
The firmware reconstruction count controls accesses to the request's fixed freelist ID array and the copy into the fixed response array. Neither access currently bounds the count to those protocol arrays.
Clamp the count to the request capacity, which is shared by the response layout, and use that count consistently for reconstruction and response publication. Keep the firmware recovery exchange instead of dropping an oversized request without a response, as discussed with the firmware maintainer.
The issue was found by our static-analysis tool.
From the CVE record · Linux
The drm/imagination driver does not bound a firmware freelist reconstruction count to the fixed request and response arrays. An oversized count can cause out-of-bounds accesses; the input does not specify how an attacker could trigger this or whether authentication or user interaction is required.
Engineers running Linux kernels with the drm/imagination driver should check whether their kernel includes the fix; affected versions are not specified.