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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-05-01T05:20:33.457Z
- **Modified:** 2026-06-17T07:18:50.800Z

## Who should check

- Anyone running Linux \>= f5c252aaa1be5d38604e58e9bd335065f767d0d8, \< 7d271b798add90c6196539167c019d0817285cf0; \>= 85d79478710ad2cbf11857aec107084a7104943e, \< c45e53c27b78afd6c81fc25608003576f27b5735; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 12609c76b755dbeb1645c0aacc0f0f4743b2eff3; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 2160ad6861c4a21d3fa553d7b2aaec6634a37f8a; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 5cd8af02b466e1beeae13e2de3dc58fcc7925e5a; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< aeca49661fd02fd56fb026768b580ce301b45733; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 0d27056c24efd3d63a03f3edfbcfc4827086b110; \>= 5.4.272, \< 5.4.274; \>= 5.10.213, \< 5.10.215
- Anyone running Linux 6.0

## 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.

## Affected and fixed versions

- Linux: \>= f5c252aaa1be5d38604e58e9bd335065f767d0d8, \< 7d271b798add90c6196539167c019d0817285cf0; \>= 85d79478710ad2cbf11857aec107084a7104943e, \< c45e53c27b78afd6c81fc25608003576f27b5735; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 12609c76b755dbeb1645c0aacc0f0f4743b2eff3; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 2160ad6861c4a21d3fa553d7b2aaec6634a37f8a; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 5cd8af02b466e1beeae13e2de3dc58fcc7925e5a; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< aeca49661fd02fd56fb026768b580ce301b45733; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 0d27056c24efd3d63a03f3edfbcfc4827086b110; \>= 5.4.272, \< 5.4.274; \>= 5.10.213, \< 5.10.215 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 5.10.215 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26978. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26978.md
Affected: Linux >= f5c252aaa1be5d38604e58e9bd335065f767d0d8, < 7d271b798add90c6196539167c019d0817285cf0; >= 85d79478710ad2cbf11857aec107084a7104943e, < c45e53c27b78afd6c81fc25608003576f27b5735; >= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, < 12609c76b755dbeb1645c0aacc0f0f4743b2eff3; >= 2e1f2d9a9bdbe12ee475c82…
Fixed in: Linux 7d271b798add90c6196539167c019d0817285cf0, Linux 12609c76b755dbeb1645c0aacc0f0f4743b2eff3, Linux 2160ad6861c4a21d3fa553d7b2aaec6634a37f8a, Linux 5cd8af02b466e1beeae13e2de3dc58fcc7925e5a, Linux 0d27056c24efd3d63a03f3edfbcfc4827086b110, Linux 5.4.274, Linux 5.10.215

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26978 being exploited?

There is no confirmed exploitation: CVE-2024-26978 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26978?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26978?

Linux \>= f5c252aaa1be5d38604e58e9bd335065f767d0d8, \< 7d271b798add90c6196539167c019d0817285cf0; \>= 85d79478710ad2cbf11857aec107084a7104943e, \< c45e53c27b78afd6c81fc25608003576f27b5735; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 12609c76b755dbeb1645c0aacc0f0f4743b2eff3; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 2160ad6861c4a21d3fa553d7b2aaec6634a37f8a; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 5cd8af02b466e1beeae13e2de3dc58fcc7925e5a; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< aeca49661fd02fd56fb026768b580ce301b45733; \>= 2e1f2d9a9bdbe12ee475c82a45ac46a278e8049a, \< 0d27056c24efd3d63a03f3edfbcfc4827086b110; \>= 5.4.272, \< 5.4.274; \>= 5.10.213, \< 5.10.215; Linux 6.0.

### Is there a fix for CVE-2024-26978?

Yes. Fixed in Linux 7d271b798add90c6196539167c019d0817285cf0, Linux 12609c76b755dbeb1645c0aacc0f0f4743b2eff3, Linux 2160ad6861c4a21d3fa553d7b2aaec6634a37f8a, Linux 5cd8af02b466e1beeae13e2de3dc58fcc7925e5a, Linux 0d27056c24efd3d63a03f3edfbcfc4827086b110, Linux 5.4.274, Linux 5.10.215. Upgrade Linux to 5.10.215 or later.

### How do I check if I'm affected by CVE-2024-26978?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26978>

HTML: <https://flawdb.com/CVE-2024-26978> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26978>
