{"id":"CVE-2024-40928","state":"PUBLISHED","title":"net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()\n\nClang static checker (scan-build) warning:\nnet/ethtool/ioctl.c:line 2233, column 2\nCalled function pointer is null (null dereference).\n\nReturn '-EOPNOTSUPP' when 'ops->get_ethtool_phy_stats' is NULL to fix\nthis typo error.","publishedAt":"2024-07-12T12:25:07.769Z","updatedAt":"2026-05-11T20:22:32.708Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c882f2178f22f3740e20a6bd6b8df1c0500301bf","status":"affected","lessThan":"25504f7fe60058b2a9553a9e424fb7dd9683843e","versionType":"git"},{"version":"72d1c4a07780e24827c29bad203a1167d67181ed","status":"affected","lessThan":"c3ba0557ab2ef15a3663e2fb9b1a3d628a8c3daa","versionType":"git"},{"version":"981c6e178cf333ac9568665e6d786f795f5cb3ad","status":"affected","lessThan":"f9e57e7ca77393b5b7072800370370b02eaad0f8","versionType":"git"},{"version":"201ed315f9676809cd5b20a39206e964106d4f27","status":"affected","lessThan":"6548d543a27449a1a3d8079925de93f5764d6f22","versionType":"git"},{"version":"201ed315f9676809cd5b20a39206e964106d4f27","status":"affected","lessThan":"92196be82a4eb61813833dc62876fd198ae51ab1","versionType":"git"},{"version":"201ed315f9676809cd5b20a39206e964106d4f27","status":"affected","lessThan":"0dcc53abf58d572d34c5313de85f607cd33fc691","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ethtool/ioctl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.35","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.6","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ethtool/ioctl.c"]}],"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","https://git.kernel.org/stable/c/92196be82a4eb61813833dc62876fd198ae51ab1","https://git.kernel.org/stable/c/0dcc53abf58d572d34c5313de85f607cd33fc691"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/40xxx/CVE-2024-40928.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-40928","state":"PUBLISHED","datePublished":"2024-07-12T12:25:07.769Z","dateUpdated":"2026-05-11T20:22:32.708Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-12T12:17:45.583Z"},"containers":{"cna":{"title":"net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()\n\nClang static checker (scan-build) warning:\nnet/ethtool/ioctl.c:line 2233, column 2\nCalled function pointer is null (null dereference).\n\nReturn '-EOPNOTSUPP' when 'ops->get_ethtool_phy_stats' is NULL to fix\nthis typo error."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c882f2178f22f3740e20a6bd6b8df1c0500301bf","status":"affected","lessThan":"25504f7fe60058b2a9553a9e424fb7dd9683843e","versionType":"git"},{"version":"72d1c4a07780e24827c29bad203a1167d67181ed","status":"affected","lessThan":"c3ba0557ab2ef15a3663e2fb9b1a3d628a8c3daa","versionType":"git"},{"version":"981c6e178cf333ac9568665e6d786f795f5cb3ad","status":"affected","lessThan":"f9e57e7ca77393b5b7072800370370b02eaad0f8","versionType":"git"},{"version":"201ed315f9676809cd5b20a39206e964106d4f27","status":"affected","lessThan":"6548d543a27449a1a3d8079925de93f5764d6f22","versionType":"git"},{"version":"201ed315f9676809cd5b20a39206e964106d4f27","status":"affected","lessThan":"92196be82a4eb61813833dc62876fd198ae51ab1","versionType":"git"},{"version":"201ed315f9676809cd5b20a39206e964106d4f27","status":"affected","lessThan":"0dcc53abf58d572d34c5313de85f607cd33fc691","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ethtool/ioctl.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.35","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.6","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/ethtool/ioctl.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/25504f7fe60058b2a9553a9e424fb7dd9683843e"},{"url":"https://git.kernel.org/stable/c/c3ba0557ab2ef15a3663e2fb9b1a3d628a8c3daa"},{"url":"https://git.kernel.org/stable/c/f9e57e7ca77393b5b7072800370370b02eaad0f8"},{"url":"https://git.kernel.org/stable/c/6548d543a27449a1a3d8079925de93f5764d6f22"},{"url":"https://git.kernel.org/stable/c/92196be82a4eb61813833dc62876fd198ae51ab1"},{"url":"https://git.kernel.org/stable/c/0dcc53abf58d572d34c5313de85f607cd33fc691"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:22:32.708Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.35"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.9.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.10"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/6548d543a27449a1a3d8079925de93f5764d6f22","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/92196be82a4eb61813833dc62876fd198ae51ab1","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/0dcc53abf58d572d34c5313de85f607cd33fc691","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T04:39:55.350Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-40928","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:05:08.517985Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:33:03.056Z"}}]}}}