From: Tyler Hicks Date: Thu, 12 Jan 2012 10:30:44 +0000 (+0100) Subject: eCryptfs: Sanitize write counts of /dev/ecryptfs X-Git-Tag: v3.2.3~87 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f46e90c60464cdc61c73c39efc3ff7792f670e1;p=pandora-kernel.git eCryptfs: Sanitize write counts of /dev/ecryptfs commit db10e556518eb9d21ee92ff944530d84349684f4 upstream. A malicious count value specified when writing to /dev/ecryptfs may result in a a very large kernel memory allocation. This patch peeks at the specified packet payload size, adds that to the size of the packet headers and compares the result with the write count value. The resulting maximum memory allocation size is approximately 532 bytes. Signed-off-by: Tyler Hicks Reported-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed