CVE-2024-50198 iio: light: veml6030: fix IIO device retrieval from embedded device
A null pointer dereference in the veml6030 light sensor driver causes a kernel crash when reading a specific attribute, 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-50198?
CVE-2024-50198 is a medium-severity vulnerability in Linux kernel, published on 8 Nov 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: light: veml6030: fix IIO device retrieval from embedded device
The dev pointer that is received as an argument in the in_illuminance_period_available_show function references the device embedded in the IIO device, not in the i2c client.
dev_to_iio_dev() must be used to accessthe right data. The current implementation leads to a segmentation fault on every attempt to read the attribute because indio_dev gets a NULL assignment.
This bug has been present since the first appearance of the driver, apparently since the last version (V6) before getting applied. A constant attribute was used until then, and the last modifications might have not been tested again.
Weakness: CWE-476
Which versions are affected by CVE-2024-50198?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50198?
Apply the vendor's patch.
Is CVE-2024-50198 being exploited?
There is no known exploitation of CVE-2024-50198 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-53564, AZL-53679, BELL-CVE-2024-50198, DEBIAN-CVE-2024-50198, GHSA-qqrf-32q3-9249, UBUNTU-CVE-2024-50198.