Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-26978
HistoryMay 01, 2024 - 5:20 a.m.

CVE-2024-26978 serial: max310x: fix NULL pointer dereference in I2C instantiation

2024-05-0105:20:33
Linux
github.com
7
linux kernel
vulnerability
max310x
null pointer
i2c instantiation

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

5.1%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

serial: max310x: fix NULL pointer dereference in I2C instantiation

When trying to instantiate a max14830 device from userspace:

echo max14830 0x60 > /sys/bus/i2c/devices/i2c-2/new_device

we get the following error:

Unable to handle kernel NULL pointer dereference at virtual address...
...
Call trace:
    max310x_i2c_probe+0x48/0x170 [max310x]
    i2c_device_probe+0x150/0x2a0
...

Add check for validity of devtype to prevent the error, and abort probe
with a meaningful error message.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "f5c252aaa1be",
        "lessThan": "7d271b798add",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "85d79478710a",
        "lessThan": "c45e53c27b78",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2e1f2d9a9bdb",
        "lessThan": "12609c76b755",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2e1f2d9a9bdb",
        "lessThan": "2160ad6861c4",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2e1f2d9a9bdb",
        "lessThan": "5cd8af02b466",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2e1f2d9a9bdb",
        "lessThan": "aeca49661fd0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "2e1f2d9a9bdb",
        "lessThan": "0d27056c24ef",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/tty/serial/max310x.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.0"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.0",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.4.274",
        "versionType": "custom",
        "lessThanOrEqual": "5.4.*"
      },
      {
        "status": "unaffected",
        "version": "5.10.215",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "6.1.84",
        "versionType": "custom",
        "lessThanOrEqual": "6.1.*"
      },
      {
        "status": "unaffected",
        "version": "6.6.24",
        "versionType": "custom",
        "lessThanOrEqual": "6.6.*"
      },
      {
        "status": "unaffected",
        "version": "6.7.12",
        "versionType": "custom",
        "lessThanOrEqual": "6.7.*"
      },
      {
        "status": "unaffected",
        "version": "6.8.3",
        "versionType": "custom",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/tty/serial/max310x.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.6

Confidence

Low

EPSS

0

Percentile

5.1%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial