Re: [PATCH wireless 1/2] wifi: brcmfmac: zero-pad SDIO write to 4-byte boundary
From: Arend van Spriel
Date: Tue Nov 17 2026 - 09:05:06 EST
On 02/11/2026 13:23, Tristan Madani wrote:
From: Tristan Madani <tristan@xxxxxxxxxxxxxxxxxxx>
brcmf_sdiod_skbuff_write() rounds skb->len up to the next 4-byte
boundary and passes the larger size to sdio_memcpy_toio(). The 1-3
extra bytes come from heap memory past skb->data, leaking stale kernel
data to the wireless device.
Zero-fill the padding before the SDIO write.
Fixes: 8f13c87ccc49 ("brcmfmac: Split brcmf_sdiod_buffrw function up.")
Cc: stable@xxxxxxxxxxxxxxx
Acked-by: Arend van Spriel <arend.vanspriel@xxxxxxxxxxxx>
Signed-off-by: Tristan Madani <tristan@xxxxxxxxxxxxxxxxxxx>
---
drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c | 3 +++
1 file changed, 3 insertions(+)