]> git.karo-electronics.de Git - linux-beck.git/commit
i2c: fix kernel memory disclosure in dev interface
authorVlad Tsyrklevich <vlad@tsyrklevich.net>
Mon, 9 Jan 2017 15:53:36 +0000 (22:53 +0700)
committerWolfram Sang <wsa@the-dreams.de>
Thu, 12 Jan 2017 19:06:10 +0000 (20:06 +0100)
commit30f939feaeee23e21391cfc7b484f012eb189c3c
tree5eaf8a5243a0bc0dcd37f138774cbdd1d3ec41b3
parenta121103c922847ba5010819a3f250f1f7fc84ab8
i2c: fix kernel memory disclosure in dev interface

i2c_smbus_xfer() does not always fill an entire block, allowing
kernel stack memory disclosure through the temp variable. Clear
it before it's read to.

Signed-off-by: Vlad Tsyrklevich <vlad@tsyrklevich.net>
Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Cc: stable@kernel.org
drivers/i2c/i2c-dev.c