blob: d1780da8d32bfec4484cce5333e12ca10cec13eb [file] [log] [blame]
From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: <linux-cve-announce@vger.kernel.org>
Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org>
Subject: CVE-2024-57908: iio: imu: kmx61: fix information leak in triggered buffer
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iio: imu: kmx61: fix information leak in triggered buffer
The 'buffer' local array 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 array to zero before using it to avoid pushing
uninitialized information to userspace.
The Linux kernel CVE team has assigned CVE-2024-57908 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.0 with commit c3a23ecc0901f624b681bbfbc4829766c5aa3070 and fixed in 5.4.290 with commit 0871eb8d700b33dd7fa86c80630d62ddaef58c2c
Issue introduced in 4.0 with commit c3a23ecc0901f624b681bbfbc4829766c5aa3070 and fixed in 5.10.234 with commit a386d9d2dc6635f2ec210b8199cfb3acf4d31305
Issue introduced in 4.0 with commit c3a23ecc0901f624b681bbfbc4829766c5aa3070 and fixed in 5.15.177 with commit a07f698084412a3ef5e950fcac1d6b0f53289efd
Issue introduced in 4.0 with commit c3a23ecc0901f624b681bbfbc4829766c5aa3070 and fixed in 6.1.125 with commit 6985ba4467e4b15b809043fa7740d1fb23a1897b
Issue introduced in 4.0 with commit c3a23ecc0901f624b681bbfbc4829766c5aa3070 and fixed in 6.6.72 with commit cde312e257b59ecaa0fad3af9ec7e2370bb24639
Issue introduced in 4.0 with commit c3a23ecc0901f624b681bbfbc4829766c5aa3070 and fixed in 6.12.10 with commit 565814cbbaa674d2901428796801de49a611e59d
Issue introduced in 4.0 with commit c3a23ecc0901f624b681bbfbc4829766c5aa3070 and fixed in 6.13 with commit 6ae053113f6a226a2303caa4936a4c37f3bfff7b
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-57908
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/imu/kmx61.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/0871eb8d700b33dd7fa86c80630d62ddaef58c2c
https://git.kernel.org/stable/c/a386d9d2dc6635f2ec210b8199cfb3acf4d31305
https://git.kernel.org/stable/c/a07f698084412a3ef5e950fcac1d6b0f53289efd
https://git.kernel.org/stable/c/6985ba4467e4b15b809043fa7740d1fb23a1897b
https://git.kernel.org/stable/c/cde312e257b59ecaa0fad3af9ec7e2370bb24639
https://git.kernel.org/stable/c/565814cbbaa674d2901428796801de49a611e59d
https://git.kernel.org/stable/c/6ae053113f6a226a2303caa4936a4c37f3bfff7b