# CVE-2024-40928: net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-07-12T12:25:07.769Z
- Modified: 2026-06-17T07:46:53.400Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from c882f2178f22f3740e20a6bd6b8df1c0500301bf before 25504f7fe60058b2a9553a9e424fb7dd9683843e; from 72d1c4a07780e24827c29bad203a1167d67181ed before c3ba0557ab2ef15a3663e2fb9b1a3d628a8c3daa; from 981c6e178cf333ac9568665e6d786f795f5cb3ad before f9e57e7ca77393b5b7072800370370b02eaad0f8; from 201ed315f9676809cd5b20a39206e964106d4f27 before 6548d543a27449a1a3d8079925de93f5764d6f22; from 201ed315f9676809cd5b20a39206e964106d4f27 before 92196be82a4eb61813833dc62876fd198ae51ab1; from 201ed315f9676809cd5b20a39206e964106d4f27 before 0dcc53abf58d572d34c5313de85f607cd33fc691; 6.2 (not affected: before 6.2; from 6.6.35 up to 6.6.*; from 6.9.6 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.2 before 6.6.35; from 6.7 before 6.9.6; 6.10

## References

- <https://git.kernel.org/stable/c/25504f7fe60058b2a9553a9e424fb7dd9683843e>
- <https://git.kernel.org/stable/c/c3ba0557ab2ef15a3663e2fb9b1a3d628a8c3daa>
- <https://git.kernel.org/stable/c/f9e57e7ca77393b5b7072800370370b02eaad0f8>
- <https://git.kernel.org/stable/c/6548d543a27449a1a3d8079925de93f5764d6f22> (patch)
- <https://git.kernel.org/stable/c/92196be82a4eb61813833dc62876fd198ae51ab1> (patch)
- <https://git.kernel.org/stable/c/0dcc53abf58d572d34c5313de85f607cd33fc691> (patch)

## Sources

- CVE List: [CVE-2024-40928](https://www.cve.org/CVERecord?id=CVE-2024-40928), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-40928](https://nvd.nist.gov/vuln/detail/CVE-2024-40928), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40928 · Whole record: https://cve.day/CVE-2024-40928.json · Rebuilt by cve.day 2026-11-25T22:58:42.844Z
