Lucene search

K
cvelistLinuxCVELIST:CVE-2024-40928
HistoryJul 12, 2024 - 12:25 p.m.

CVE-2024-40928 net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool()

2024-07-1212:25:07
Linux
www.cve.org
8
linux kernel
net
ethtool
vulnerability
clang static checker
error condition
null dereference
eopnotsupp
get_ethtool_phy_stats.

EPSS

0

Percentile

15.9%

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.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/ethtool/ioctl.c"
    ],
    "versions": [
      {
        "version": "201ed315f967",
        "lessThan": "6548d543a274",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "201ed315f967",
        "lessThan": "92196be82a4e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "201ed315f967",
        "lessThan": "0dcc53abf58d",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/ethtool/ioctl.c"
    ],
    "versions": [
      {
        "version": "6.2",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.2",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.35",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.6",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]