Lucene search

K
cveLinuxCVE-2024-26978
HistoryMay 01, 2024 - 6:15 a.m.

CVE-2024-26978

2024-05-0106:15:15
CWE-476
Linux
web.nvd.nist.gov
78
cve-2024-26978
vulnerability
linux kernel
max310x
i2c instantiation
null pointer
probe error

CVSS3

5.5

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

AI Score

6.3

Confidence

Low

EPSS

0

Percentile

5.1%

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.

Affected configurations

Nvd
Vulners
Node
linuxlinux_kernelRange<5.4.274
OR
linuxlinux_kernelRange5.55.10.215
OR
linuxlinux_kernelRange5.116.1.84
OR
linuxlinux_kernelRange6.26.6.24
OR
linuxlinux_kernelRange6.76.7.12
OR
linuxlinux_kernelRange6.86.8.3
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

CNA Affected

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

CVSS3

5.5

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

AI Score

6.3

Confidence

Low

EPSS

0

Percentile

5.1%