CVE-2026-63932: iio: chemical: mhz19b: reject oversized serial replies
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
iio: chemical: mhz19b: reject oversized serial replies
mhz19b_receive_buf() appends each serdev chunk into the fixed MHZ19B_CMD_SIZE receive buffer and advances buf_idx by len without checking that the chunk fits in the remaining space. A large callback can therefore overflow st->buf before the command path validates the reply.
Reset the reply state before each command and reject oversized serial replies before copying them into the fixed buffer. When an oversized reply is detected, wake the waiter and report -EMSGSIZE instead of overwriting st->buf.
The Linux kernel CVE team has assigned CVE-2026-63932 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.16 with commit 4572a70b3681e38055c78d12fb68cd147bdbee7d and fixed in 6.18.35 with commit a5a05410cb34bfa486d63684cdc1f87a3b13f20a Issue introduced in 6.16 with commit 4572a70b3681e38055c78d12fb68cd147bdbee7d and fixed in 7.0.12 with commit ea69e7a6efa88ef32090a91064c362738cc19ddd Issue introduced in 6.16 with commit 4572a70b3681e38055c78d12fb68cd147bdbee7d and fixed in 7.1 with commit 673478bc29cf72010faaf293c1c8c667393335a0
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-63932
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/chemical/mhz19b.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/a5a05410cb34bfa486d63684cdc1f87a3b13f20a https://git.kernel.org/stable/c/ea69e7a6efa88ef32090a91064c362738cc19ddd https://git.kernel.org/stable/c/673478bc29cf72010faaf293c1c8c667393335a0