iio: chemical: mhz19b: reject oversized serial replies
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 673478bc29cf72010faaf293c1c8c667393335a0, Kernel a5a05410cb34bfa486d63684cdc1f87a3b13f20a and Kernel ea69e7a6efa88ef32090a91064c362738cc19ddd.
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.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | =6.16, >=4572a70b3681e38055c78d12fb68cd147bdbee7d <673478bc29cf72010faaf293c1c8c667393335a0, >=4572a70b3681e38055c78d12fb68cd147bdbee7d <a5a05410cb34bfa486d63684cdc1f87a3b13f20a, >=4572a70b3681e38055c78d12fb68cd147bdbee7d <ea69e7a6efa88ef32090a91064c362738cc19ddd | 673478bc29cf72010faaf293c1c8c667393335a0, a5a05410cb34bfa486d63684cdc1f87a3b13f20a, ea69e7a6efa88ef32090a91064c362738cc19ddd |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket