net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 201ed315f9676809cd5b20a39206e964106d4f27 · < 0dcc53abf58d572d34c5313de85f607cd33fc691| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()
Clang static checker (scan-build) warning: net/ethtool/ioctl.c:line 2233, column 2 Called function pointer is null (null dereference).
Return '-EOPNOTSUPP' when 'ops->get_ethtool_phy_stats' is NULL to fix this typo error.
From the CVE record · Linux
The Linux kernel's ethtool PHY statistics handler can call a null function pointer when the get_ethtool_phy_stats callback is absent. The input does not establish how an attacker could trigger this condition or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the fix; affected versions are not specified.