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

Medium 5.5 Published Updated

A local attacker can cause a kernel crash by instantiating a specific I2C device, leading to denial of service.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-26978?

CVE-2024-26978 is a medium-severity vulnerability in Linux kernel, published on 1 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-476

Which versions are affected by CVE-2024-26978?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-26978?

Apply the vendor's patch.

Is CVE-2024-26978 being exploited?

There is no known exploitation of CVE-2024-26978 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as AZL-42222, BELL-CVE-2024-26978, DEBIAN-CVE-2024-26978, GHSA-qppw-2696-658w, UBUNTU-CVE-2024-26978.

Is CVE-2024-26978 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free