CVE-2024-40928·Kernel vulnerability
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.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.9.6
- Published
- 2024-07-12
Affected versions
From: 6.7
Until: 6.9.6
Fixed in: 6.9.6
How to fix this CVE
Update your Linux kernel to version 6.9.6 or later to resolve this null pointer dereference vulnerability in the ethtool PHY statistics handler. This patch ensures proper error handling when the network driver does not support PHY statistics retrieval, preventing potential kernel crashes during ethtool operations. Apply the update through your distribution's package manager to protect against denial-of-service conditions triggered via malformed ethtool requests.
sudo dnf update kernel kernel-develDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version with `uname -r` and verify if it falls between 6.7 and 6.9.5
- Step 2: Verify ethtool is installed and can communicate with network drivers via `ethtool eth0` (replace eth0 with your interface name)
- Step 3: Search kernel logs for null pointer dereference errors using `sudo dmesg | grep -i 'null pointer\|ethtool\|phy_stats'`
- Step 4: After patching, confirm the new kernel version with `uname -r` and test ethtool functionality with `ethtool --show-priv-flags eth0`
FAQ
What is CVE-2024-40928?
CVE-2024-40928 is a null pointer dereference vulnerability in the Linux kernel's ethtool subsystem that occurs when retrieving PHY statistics from network drivers that don't implement the required handler. This can lead to kernel crashes or denial-of-service conditions when unprivileged local users invoke certain ethtool operations.
Is CVE-2024-40928 being actively exploited?
No, this vulnerability is not currently listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available. However, local attackers with minimal privileges can trigger the vulnerability through standard ethtool commands.
What versions of Kernel are affected by CVE-2024-40928?
Linux kernel versions 6.7 through 6.9.5 are affected. The vulnerability is resolved in kernel 6.9.6 and later.
How do I check if my server is vulnerable to CVE-2024-40928?
Run `uname -r` to display your kernel version. If the output shows a version between 6.7 and 6.9.5 inclusive, your system is vulnerable and requires patching.
Does Defensia detect CVE-2024-40928?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-40928 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/0dcc53abf58d572d34c5313de85f607cd33fc691
- https://git.kernel.org/stable/c/25504f7fe60058b2a9553a9e424fb7dd9683843e
- https://git.kernel.org/stable/c/6548d543a27449a1a3d8079925de93f5764d6f22
- https://git.kernel.org/stable/c/92196be82a4eb61813833dc62876fd198ae51ab1
- https://git.kernel.org/stable/c/c3ba0557ab2ef15a3663e2fb9b1a3d628a8c3daa
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-40928. Free for 1 server.
Get started free