| 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-57911: iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer |
| |
| Description |
| =========== |
| |
| In the Linux kernel, the following vulnerability has been resolved: |
| |
| iio: dummy: iio_simply_dummy_buffer: fix information leak in triggered buffer |
| |
| The 'data' array is allocated via kmalloc() and it 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. |
| |
| Use kzalloc for the memory allocation to avoid pushing uninitialized |
| information to userspace. |
| |
| The Linux kernel CVE team has assigned CVE-2024-57911 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 4.5 with commit 415f792447572ef1949a3cef5119bbce8cc66373 and fixed in 5.4.290 with commit 03fa47621bf8fcbf5994c5716021527853f9af3d |
| Issue introduced in 4.5 with commit 415f792447572ef1949a3cef5119bbce8cc66373 and fixed in 5.10.234 with commit e1c1e8c05010103c9c9ea3e9c4304b0b7e2c8e4a |
| Issue introduced in 4.5 with commit 415f792447572ef1949a3cef5119bbce8cc66373 and fixed in 5.15.177 with commit 006073761888a632c5d6f93e47c41760fa627f77 |
| Issue introduced in 4.5 with commit 415f792447572ef1949a3cef5119bbce8cc66373 and fixed in 6.1.125 with commit b0642d9c871aea1f28eb02cd84d60434df594f67 |
| Issue introduced in 4.5 with commit 415f792447572ef1949a3cef5119bbce8cc66373 and fixed in 6.6.72 with commit 74058395b2c63c8a438cf199d09094b640f8c7f4 |
| Issue introduced in 4.5 with commit 415f792447572ef1949a3cef5119bbce8cc66373 and fixed in 6.12.10 with commit ea703cda36da0dacb9a2fd876370003197d8a019 |
| Issue introduced in 4.5 with commit 415f792447572ef1949a3cef5119bbce8cc66373 and fixed in 6.13 with commit 333be433ee908a53f283beb95585dfc14c8ffb46 |
| |
| 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-57911 |
| 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/dummy/iio_simple_dummy_buffer.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/03fa47621bf8fcbf5994c5716021527853f9af3d |
| https://git.kernel.org/stable/c/e1c1e8c05010103c9c9ea3e9c4304b0b7e2c8e4a |
| https://git.kernel.org/stable/c/006073761888a632c5d6f93e47c41760fa627f77 |
| https://git.kernel.org/stable/c/b0642d9c871aea1f28eb02cd84d60434df594f67 |
| https://git.kernel.org/stable/c/74058395b2c63c8a438cf199d09094b640f8c7f4 |
| https://git.kernel.org/stable/c/ea703cda36da0dacb9a2fd876370003197d8a019 |
| https://git.kernel.org/stable/c/333be433ee908a53f283beb95585dfc14c8ffb46 |