CVE-2024-26978

Source
https://nvd.nist.gov/vuln/detail/CVE-2024-26978
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-26978.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2024-26978
Downstream
Related
Published
2024-05-01T06:15:15Z
Modified
2025-08-09T19:01:29Z
Severity
  • 5.5 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages