net: phy: dp83822: Fix null pointer access on DP83825/DP83826 devices
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: phy: dp83822: Fix null pointer access on DP83825/DP83826 devices
The probe() function is only used for the DP83822 PHY, leaving the private data pointer uninitialized for the smaller DP83825/26 models. While all uses of the private data structure are hidden in 82822 specific callbacks, configuring the interrupt is shared across all models. This causes a NULL pointer dereference on the smaller PHYs as it accesses the private data unchecked. Verifying the pointer avoids that.
From the CVE record · Linux
The Linux kernel’s dp83822 PHY driver leaves a private data pointer uninitialized on DP83825 and DP83826 devices. Configuring interrupts on those devices can cause a NULL pointer dereference. The input does not identify an attacker path, authentication requirement, or user-interaction requirement.
Engineers running Linux kernels with DP83825 or DP83826 PHY devices should check their kernel versions; affected versions are not specified.