accel: ethosu: Fix ethosu_job_open() return value
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: Fix ethosu_job_open() return value
A WARN_ON() returns a 0 or 1, not the original negative errno. Just drop the WARN_ON() as the FD open will pass the return code to userspace and there's only one possible source of the error (drm_sched_entity_init()).
From the CVE record · Linux
The Linux kernel’s ethosu_job_open() can return 0 or 1 instead of the original negative error code when drm_sched_entity_init() fails. This affects the error reported to userspace during an FD open; the input does not describe an attacker-controlled exploit or authentication requirements.
Engineers running Linux kernels with the ethosu accelerator driver should check whether their kernel includes this fix; affected versions were not provided.