Skip to contentSkip to conversation

CVE-2026-53387: iio: light: veml6075: add bounds check to veml6075_it_ms index

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 19

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

iio: light: veml6075: add bounds check to veml6075_it_ms index

veml6075_it_ms has 5 elements but VEML6075_CONF_IT can yield values 0-7. If it returns a value >= 5, this causes an out-of-bounds array access. Add a bounds check and return -EINVAL if the index is out of range.

The problem values are reserved so should never be read from the register. Hence this is hardening against fault device, missprogramming or bus corruption.

The Linux kernel CVE team has assigned CVE-2026-53387 to this issue.

Affected and fixed versions
===========================

	Fixed in 6.12.95 with commit df9127a1d2d748e426c49c8fcd9b6801e4eb743d
	Fixed in 6.18.37 with commit 0a89002737ee34decc20fa232204dbe5fe83e0de
	Fixed in 7.0.14 with commit f75beebcd5bc9bdc80e0722142e78a6f306214ee
	Fixed in 7.1.2 with commit e545936e06f1c7173ab41a5f33a77ff43ced3a8d
	Fixed in 7.2-rc1 with commit 307dc4240bd41852d9e0912921e298160db1c109

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-53387

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:

	drivers/iio/light/veml6075.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/df9127a1d2d748e426c49c8fcd9b6801e4eb743d
	https://git.kernel.org/stable/c/0a89002737ee34decc20fa232204dbe5fe83e0de
	https://git.kernel.org/stable/c/f75beebcd5bc9bdc80e0722142e78a6f306214ee
	https://git.kernel.org/stable/c/e545936e06f1c7173ab41a5f33a77ff43ced3a8d
	https://git.kernel.org/stable/c/307dc4240bd41852d9e0912921e298160db1c109