net: emac: Fix NULL pointer dereference in emac_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:
net: emac: Fix NULL pointer dereference in emac_probe
Move devm_request_irq() after devm_platform_ioremap_resource() so that dev->emacp is mapped before the interrupt handler can fire. An early interrupt hitting emac_irq() would dereference the NULL dev->emacp and crash.
Also remove redundant error message. devm_platform_ioremap_resource() already returns an error message with dev_err_probe().
From the CVE record · Linux
The Linux kernel’s EMAC probe can register an interrupt handler before mapping the device resource it uses. If an interrupt fires early, the handler dereferences a NULL pointer and crashes; the input does not specify whether an attacker can trigger this or what access would be required.
Engineers running Linux systems with the EMAC driver should check their kernel versions against the vendor advisory; affected versions were not provided.