Skip to contentSkip to conversation

CVE-2024-57912: iio: pressure: zpa2326: 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: pressure: zpa2326: fix information leak in triggered buffer

The 'sample' local struct is used to push data to user space from a triggered buffer, but it has a hole between the temperature and the timestamp (u32 pressure, u16 temperature, GAP, u64 timestamp). This hole is never initialized.

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

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

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

	Issue introduced in 4.9 with commit 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 and fixed in 6.1.125 with commit b7849f62e61242e0e02c776e1109eb81e59c567c
	Issue introduced in 4.9 with commit 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 and fixed in 6.6.72 with commit fefb88a4da961a0b9c2473cbdcfce1a942fcfa9a
	Issue introduced in 4.9 with commit 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 and fixed in 6.12.10 with commit 979a0db76ceda8fe1f2f85a116bfe97620ebbadf
	Issue introduced in 4.9 with commit 03b262f2bbf43b82eaef82ffb3bc671d5b5c8da1 and fixed in 6.13-rc7 with commit 6007d10c5262f6f71479627c1216899ea7f09073

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-57912

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/pressure/zpa2326.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/b7849f62e61242e0e02c776e1109eb81e59c567c
	https://git.kernel.org/stable/c/fefb88a4da961a0b9c2473cbdcfce1a942fcfa9a
	https://git.kernel.org/stable/c/979a0db76ceda8fe1f2f85a116bfe97620ebbadf
	https://git.kernel.org/stable/c/6007d10c5262f6f71479627c1216899ea7f09073