Something went wrong. Try again.
(I'm so sorry!) Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
Something went wrong. Try again.
i2c: mt7621: fix copying uninitialized kernel stack with reduced page_len
When a page_len is less than 5 bytes in mtk_i2c_xfer, uninitialized kernel stack data is copied and written to REG_SM0D1_REG. Equally on the read part, an unnecessary read is done. Guard these extra copy/write and read for the page_len to fix leaking uninitialized stack memory. Fixes: d04913ec5f89 ("i2c: mt7621: Add MediaTek MT7621/7628/7688 I2C driver") Signed-off-by: Christian Marangi <ansuelsmth@gmail.com> Cc: <stable@vger.kernel.org> # v5.3+ Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://patch.msgid.link/20261022193853.670625-1-ansuelsmth@gmail.com
Author Christian Marangi Committer Andi Shyti Date (Oct 23, 2026, 4:27 PM UTC) Commit
Copy SHA
Parent 73dae605 73dae605cad7921800677d982bfaeb81cc930dec