CVE-2024-50198

Severity CVSS v4.0:
Pending analysis
Type:
CWE-476 NULL Pointer Dereference
Publication date:
08/11/2024
Last modified:
03/11/2025

Description

In the Linux kernel, the following vulnerability has been resolved:<br /> <br /> iio: light: veml6030: fix IIO device retrieval from embedded device<br /> <br /> The dev pointer that is received as an argument in the<br /> in_illuminance_period_available_show function references the device<br /> embedded in the IIO device, not in the i2c client.<br /> <br /> dev_to_iio_dev() must be used to accessthe right data. The current<br /> implementation leads to a segmentation fault on every attempt to read<br /> the attribute because indio_dev gets a NULL assignment.<br /> <br /> This bug has been present since the first appearance of the driver,<br /> apparently since the last version (V6) before getting applied. A<br /> constant attribute was used until then, and the last modifications might<br /> have not been tested again.

Vulnerable products and versions

CPE From Up to
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.5 (including) 5.10.228 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.11 (including) 5.15.169 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 5.16 (including) 6.1.114 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.2 (including) 6.6.58 (excluding)
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* 6.7 (including) 6.11.5 (excluding)
cpe:2.3:o:linux:linux_kernel:6.12:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.12:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.12:rc3:*:*:*:*:*:*