CVE-2024-38631 iio: adc: PAC1934: fix accessing out of bounds array index

High 7.8 Published Updated

A local attacker can trigger a kernel crash by accessing out-of-bounds array indices in the PAC1934 ADC driver via sysfs.

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-38631?

CVE-2024-38631 is a high-severity vulnerability in Linux kernel, published on 21 Jun 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:

iio: adc: PAC1934: fix accessing out of bounds array index

Fix accessing out of bounds array index for average current and voltage measurements. The device itself has only 4 channels, but in sysfs there are "fake" channels for the average voltages and currents too.

Weakness: CWE-129

Which versions are affected by CVE-2024-38631?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-38631?

Apply the vendor's patch.

Is CVE-2024-38631 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-38631, GHSA-mqvj-4p4w-f87c, UBUNTU-CVE-2024-38631.

Is CVE-2024-38631 in your software?

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

Check your SBOMs for free