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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-05-01T05:20:33.457Z
- Modified: 2026-06-17T07:18:50.800Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from f5c252aaa1be5d38604e58e9bd335065f767d0d8 before 7d271b798add90c6196539167c019d0817285cf0; from 85d79478710ad2cbf11857aec107084a7104943e before c45e53c27b78afd6c81fc25608003576f27b5735; from 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a before 12609c76b755dbeb1645c0aacc0f0f4743b2eff3; from 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a before 2160ad6861c4a21d3fa553d7b2aaec6634a37f8a; from 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a before 5cd8af02b466e1beeae13e2de3dc58fcc7925e5a; from 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a before aeca49661fd02fd56fb026768b580ce301b45733; from 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a before 0d27056c24efd3d63a03f3edfbcfc4827086b110; from 5.4.272 before 5.4.274; from 5.10.213 before 5.10.215; 6.0 (not affected: before 6.0; from 5.4.274 up to 5.4.*; from 5.10.215 up to 5.10.*; from 6.1.84 up to 6.1.*; from 6.6.24 up to 6.6.*; from 6.7.12 up to 6.7.*; from 6.8.3 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: before 5.4.274; from 5.5 before 5.10.215; from 5.11 before 6.1.84; from 6.2 before 6.6.24; from 6.7 before 6.7.12; from 6.8 up to 6.8.3

## References

- <https://git.kernel.org/stable/c/7d271b798add90c6196539167c019d0817285cf0> (patch)
- <https://git.kernel.org/stable/c/c45e53c27b78afd6c81fc25608003576f27b5735> (patch)
- <https://git.kernel.org/stable/c/12609c76b755dbeb1645c0aacc0f0f4743b2eff3> (patch)
- <https://git.kernel.org/stable/c/2160ad6861c4a21d3fa553d7b2aaec6634a37f8a> (patch)
- <https://git.kernel.org/stable/c/5cd8af02b466e1beeae13e2de3dc58fcc7925e5a> (patch)
- <https://git.kernel.org/stable/c/aeca49661fd02fd56fb026768b580ce301b45733> (patch)
- <https://git.kernel.org/stable/c/0d27056c24efd3d63a03f3edfbcfc4827086b110> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

## Sources

- CVE List: [CVE-2024-26978](https://www.cve.org/CVERecord?id=CVE-2024-26978), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2024-26978](https://nvd.nist.gov/vuln/detail/CVE-2024-26978), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-26978 · Whole record: https://cve.day/CVE-2024-26978.json · Rebuilt by cve.day 2026-11-25T22:58:39.749Z
