Patch "i2c: fix kernel memory disclosure in dev interface" has been added to the 4.4-stable tree
Subsystems (2)
This is a note to let you know that I've just added the patch titled
i2c: fix kernel memory disclosure in dev interface
to the 4.4-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary
The filename of the patch is:
i2c-fix-kernel-memory-disclosure-in-dev-interface.patch
and it can be found in the queue-4.4 subdirectory.
If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
Quoted 1 line
From
30f939feaeee23e21391cfc7b484f012eb189c3cMon Sep 17 00:00:00 2001
From: Vlad Tsyrklevich <[email protected]>
Date: Mon, 9 Jan 2017 22:53:36 +0700
Subject: i2c: fix kernel memory disclosure in dev interface
From: Vlad Tsyrklevich <[email protected]>
commit 30f939feaeee23e21391cfc7b484f012eb189c3c upstream.
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.
--- drivers/i2c/i2c-dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/i2c/i2c-dev.c +1 -1
@@ -329,7 +329,7 @@ static noinline int i2cdev_ioctl_smbus(s unsigned long arg) {struct i2c_smbus_ioctl_data data_arg; -union i2c_smbus_data temp; +union i2c_smbus_data temp = {};int datasize, res; if (copy_from_user(&data_arg,
Patches currently in stable-queue which might be from [email protected] are
queue-4.4/i2c-fix-kernel-memory-disclosure-in-dev-interface.patch