Lucene search

K
cvelistLinuxCVELIST:CVE-2024-27047
HistoryMay 01, 2024 - 12:54 p.m.

CVE-2024-27047 net: phy: fix phy_get_internal_delay accessing an empty array

2024-05-0112:54:25
Linux
www.cve.org
linux kernel
vulnerability
phy_get_internal_delay
driver
kernel oops
null pointer
dereference
cve-2024-27047

7.5 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

10.3%

In the Linux kernel, the following vulnerability has been resolved:

net: phy: fix phy_get_internal_delay accessing an empty array

The phy_get_internal_delay function could try to access to an empty
array in the case that the driver is calling phy_get_internal_delay
without defining delay_values and rx-internal-delay-ps or
tx-internal-delay-ps is defined to 0 in the device-tree.
This will lead to “unable to handle kernel NULL pointer dereference at
virtual address 0”. To avoid this kernel oops, the test should be delay
>= 0. As there is already delay < 0 test just before, the test could
only be size == 0.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/phy/phy_device.c"
    ],
    "versions": [
      {
        "version": "92252eec913b",
        "lessThan": "06dd21045a7e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "92252eec913b",
        "lessThan": "0e939a002c8a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "92252eec913b",
        "lessThan": "2a2ff7095116",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "92252eec913b",
        "lessThan": "589ec16174dd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "92252eec913b",
        "lessThan": "c0691de7df1d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "92252eec913b",
        "lessThan": "0307cf443308",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "92252eec913b",
        "lessThan": "4469c0c5b14a",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/phy/phy_device.c"
    ],
    "versions": [
      {
        "version": "5.9",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.9",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.214",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.153",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.83",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.23",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.11",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.2",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.5 High

AI Score

Confidence

High

0.0004 Low

EPSS

Percentile

10.3%