net: usb: asix_devices: add phy_mask for ax88772 mdio bus
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ e532a096be0e5e570b383e71d4560e7f04384e0f · < ad1f8313aeec0115f9978bd2d002ef4a8d96c773| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: usb: asix_devices: add phy_mask for ax88772 mdio bus
Without setting phy_mask for ax88772 mdio bus, current driver may create at most 32 mdio phy devices with phy address range from 0x00 ~ 0x1f. DLink DUB-E100 H/W Ver B1 is such a device. However, only one main phy device will bind to net phy driver. This is creating issue during system suspend/resume since phy_polling_mode() in phy_state_machine() will directly deference member of phydev->drv for non-main phy devices. Then NULL pointer dereference issue will occur. Due to only external phy or internal phy is necessary, add phy_mask for ax88772 mdio bus to workarnoud the issue.
From the CVE record · Linux
The Linux kernel’s ax88772 MDIO bus driver may create non-main PHY devices without setting phy_mask. During system suspend or resume, the PHY state machine can dereference a null driver pointer for one of those devices. The input does not specify attacker access or user-interaction requirements.
Engineers running Linux systems with ax88772-based USB network devices, including D-Link DUB-E100 H/W Ver B1, should check their kernel; affected versions are not specified.