accel: ethosu: Ensure SRAM region size matches job
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:
accel: ethosu: Ensure SRAM region size matches job
It is possible for userspace to set the job SRAM size to 0, but then still have SRAM accesses in the command stream. When the job SRAM size is 0, setting the region base register is skipped and a stale base address from a prior job is used.
Check the region size against the job's SRAM size instead of just the size of the SRAM. The job's SRAM size was already checked against the total SRAM size.
From the CVE record · Linux
The Linux kernel ethosu accelerator driver can use a stale SRAM base address from a prior job. This can happen when local userspace submits a job with an SRAM size of zero but includes SRAM accesses in its command stream.
Engineers running Linux kernels with the ethosu accelerator driver should check whether their kernel includes the fix; affected versions were not specified.