CVE-2026-98668: iio: buffer: Ensure bounce buffer used for unaligned case is zeroed.
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iio: buffer: Ensure bounce buffer used for unaligned case is zeroed.
iio_push_to_buffers_with_ts_unaligned() leaks uninitialized heap memory to userspace if the data passed in is not a multiple of 8 bytes and the timestamp is enabled. Specify __GFP_ZERO for the devm_krealloc() to ensure any extra space is cleared.
The Linux kernel CVE team has assigned CVE-2026-98668 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit 95ec3fdf2b79eaff79e78688bbc2f7dbb98d68b6 and fixed in 6.12.113 with commit b5c2f21f645e40c70fda2a4283e6f2a81e5cb9f2 Issue introduced in 5.16 with commit 95ec3fdf2b79eaff79e78688bbc2f7dbb98d68b6 and fixed in 6.18.56 with commit b134ef820610bd873c9d59999d9824710964ce82 Issue introduced in 5.16 with commit 95ec3fdf2b79eaff79e78688bbc2f7dbb98d68b6 and fixed in 7.2.10 with commit 3a87212b1a09a1fdd730ce5520f7b1fc0b488511 Issue introduced in 5.16 with commit 95ec3fdf2b79eaff79e78688bbc2f7dbb98d68b6 and fixed in 7.3-rc6 with commit 5330036bc68d23672bfcc16c60c54701ae123083
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-98668
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/industrialio-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/b5c2f21f645e40c70fda2a4283e6f2a81e5cb9f2 https://git.kernel.org/stable/c/b134ef820610bd873c9d59999d9824710964ce82 https://git.kernel.org/stable/c/3a87212b1a09a1fdd730ce5520f7b1fc0b488511 https://git.kernel.org/stable/c/5330036bc68d23672bfcc16c60c54701ae123083