Linux Kernel PHY Address Mask Vulnerability in MDIO Bus Initialization

Vulnerability

A vulnerability in the Linux kernel's handling of the MDIO bus initialization for certain USB Ethernet devices can lead to a shift-out-of-bounds exception. This issue arises because the PHY address is not properly masked, allowing invalid addresses to be used, which could disrupt MDIO bus operations. The vulnerability affects the stable version of the Linux kernel.

Impact

The vulnerability can cause a shift-out-of-bounds exception during MDIO bus initialization, potentially leading to undefined behavior or application crashes.

Reproduction

The vulnerability can be reproduced by initializing the MDIO bus for an affected USB Ethernet device without the proper PHY address mask. This can be done by loading the device driver for the USB Ethernet device, which will trigger the MDIO bus initialization process. The absence of the PHY address mask allows invalid addresses to be used, causing the shift-out-of-bounds exception.

Remediation

The vulnerability has been addressed by updating the PHY address masking to ensure it is limited to the valid range of 0-31. Users can apply the latest patches available in the Linux kernel stable tree to mitigate this issue.

Added: Sep 5, 2025, 8:16 PM
Updated: Sep 5, 2025, 8:16 PM

Vulnerability Rating

Custom Algorithm
spread
9.0
impact
2.5
exploitability
4.3
remediation
7.7
relevance
0.5
threat
4.8
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.