Hello Hui Peng. On Wed, 30 Sep 2026 07:19:12 +0000, Hui Peng wrote:
> In ca8210_spi_transfer(), each SPI transfer reads > sizeof(struct mac_message) bytes into cas_ctl->tx_in_buf: > > cas_ctl->transfer.len = sizeof(struct mac_message); > > However, ca8210_rx_done() only checks the received packet length > len = buf[1] + 2 against CA8210_SPI_BUF_SIZE (256). When buf[0] & SPI_SYN > is set and priv->sync_command_response is non-NULL, memcpy() copies up to > 256 bytes into priv->sync_command_response, which points to a > struct mac_message object on the synchronous caller's stack, overflowing > the stack buffer: > > [...]
Applied to wpan/wpan.git, thanks! [1/3] ieee802154: ca8210: prevent stack buffer overflow in ca8210_rx_done() https://git.kernel.org/wpan/wpan/c/9ab687710922 regards, Stefan Schmidt