CVE-2024-40928

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

No CVSS score yet EPSS 0.23%

Published 12 Jul 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-40928

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-40928 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.4% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 10 Sep 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c882f2178f22f3740e20a6bd6b8df1c0500301bf, before 25504f7fe60058b2a9553a9e424fb7dd9683843e
affected from 72d1c4a07780e24827c29bad203a1167d67181ed, before c3ba0557ab2ef15a3663e2fb9b1a3d628a8c3daa
affected from 981c6e178cf333ac9568665e6d786f795f5cb3ad, before f9e57e7ca77393b5b7072800370370b02eaad0f8
affected from 201ed315f9676809cd5b20a39206e964106d4f27, before 6548d543a27449a1a3d8079925de93f5764d6f22
affected from 201ed315f9676809cd5b20a39206e964106d4f27, before 92196be82a4eb61813833dc62876fd198ae51ab1
affected from 201ed315f9676809cd5b20a39206e964106d4f27, before 0dcc53abf58d572d34c5313de85f607cd33fc691
Other versions: unaffected
Linux
affected 6.2
unaffected before 6.2
unaffected from 6.6.35 up to and including 6.6.*
unaffected from 6.9.6 up to and including 6.9.*
unaffected 6.10 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-40928 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-40928

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-40928
trivy image --scanners vuln IMAGE | grep CVE-2024-40928

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-40928 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.