CVE-2024-40928 net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()
A null pointer dereference in the Linux kernel's ethtool subsystem can cause a system crash, requiring a kernel patch to resolve.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-40928?
CVE-2024-40928 is a medium-severity vulnerability in Linux kernel, published on 12 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2024-40928?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-40928?
Apply the vendor's patch.
Is CVE-2024-40928 being exploited?
There is no known exploitation of CVE-2024-40928 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-40928, DEBIAN-CVE-2024-40928, GHSA-r4w6-xfp9-ggj2, UBUNTU-CVE-2024-40928.