net: mdio: Check regmap pointer returned by device_node_to_regmap()
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: mdio: Check regmap pointer returned by device_node_to_regmap()
The call to device_node_to_regmap() in airoha_mdio_probe() can return an ERR_PTR() if regmap initialization fails. Currently, the driver stores the pointer without validation, which could lead to a crash if it is later dereferenced.
Add an IS_ERR() check and return the corresponding error code to make the probe path more robust.
From the CVE record · Linux
The Linux kernel's Airoha MDIO driver does not check whether regmap initialization returned an error pointer. If initialization fails and the pointer is later dereferenced, the kernel could crash. The input does not establish an attacker trigger, authentication requirement, or user interaction.
Engineers running the Linux kernel with the Airoha MDIO driver should check their installations; affected versions are not specified.