accel/ethosu: check MMIO mapping errors in probe
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: check MMIO mapping errors in probe
devm_platform_ioremap_resource() returns an error pointer when the register resource cannot be mapped. ethosu_probe() stores it and continues until initialization dereferences it through MMIO accessors.
Return the mapping error before initializing the device.
From the CVE record · Linux
The Linux kernel’s ethosu device probe does not check whether a register resource was mapped successfully. If mapping fails, initialization can dereference an error pointer through MMIO accessors. The input does not describe an attacker-controlled trigger, authentication requirement, or user interaction.
Engineers running Linux kernels with the accel/ethosu driver should check their installations; affected versions are not specified.