Skip to contentSkip to conversation

CVE-2024-57909: iio: light: bh1745: fix information leak in triggered buffer

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jan 19, 2025

lore
Share & tools
lore
#0 lore raw

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

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

iio: light: bh1745: fix information leak in triggered buffer

The 'scan' local struct is used to push data to user space from a triggered buffer, but it does not set values for inactive channels, as it only uses iio_for_each_active_channel() to assign new values.

Initialize the struct to zero before using it to avoid pushing uninitialized information to userspace.

The Linux kernel CVE team has assigned CVE-2024-57909 to this issue.

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

	Issue introduced in 6.12 with commit eab35358aae705b779a7c8b405474d1290175196 and fixed in 6.12.10 with commit 1cca2a666e099aa018e5ab385f0a6e01a3053629
	Issue introduced in 6.12 with commit eab35358aae705b779a7c8b405474d1290175196 and fixed in 6.13-rc7 with commit b62fbe3b8eedd3cf3c9ad0b7cb9f72c3f40815f0

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-2024-57909

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/bh1745.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/1cca2a666e099aa018e5ab385f0a6e01a3053629
	https://git.kernel.org/stable/c/b62fbe3b8eedd3cf3c9ad0b7cb9f72c3f40815f0