CVE-2024-40928

net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()

State
Published
Severity
Not scored
Published
Jul 12, 2024
Updated
May 11, 2026
Reserved
Jul 12, 2024

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c882f2178f22f3740e20a6bd6b8df1c0500301bf to before 25504f7fe60058b2a9553a9e424fb7dd9683843eAffected
  • 72d1c4a07780e24827c29bad203a1167d67181ed to before c3ba0557ab2ef15a3663e2fb9b1a3d628a8c3daaAffected
  • 981c6e178cf333ac9568665e6d786f795f5cb3ad to before f9e57e7ca77393b5b7072800370370b02eaad0f8Affected
  • 201ed315f9676809cd5b20a39206e964106d4f27 to before 6548d543a27449a1a3d8079925de93f5764d6f22Affected
  • 201ed315f9676809cd5b20a39206e964106d4f27 to before 92196be82a4eb61813833dc62876fd198ae51ab1Affected
  • 201ed315f9676809cd5b20a39206e964106d4f27 to before 0dcc53abf58d572d34c5313de85f607cd33fc691Affected
LinuxLinux
  • 6.2Affected
  • before 6.2Not affected
  • 6.6.35 through 6.6.*Not affected
  • 6.9.6 through 6.9.*Not affected
  • 6.10 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.