From: Lars-Peter Clausen Date: Mon, 28 Nov 2011 08:44:14 +0000 (+0100) Subject: firmware: Sigma: Prevent out of bounds memory access X-Git-Tag: v3.2-rc5~55^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f718a29fe4908c2cea782f751e9805319684e2b;p=pandora-kernel.git firmware: Sigma: Prevent out of bounds memory access The SigmaDSP firmware loader currently does not perform enough boundary size checks when processing the firmware. As a result it is possible that a malformed firmware can cause an out of bounds memory access. This patch adds checks which ensure that both the action header and the payload are completely inside the firmware data boundaries before processing them. Signed-off-by: Lars-Peter Clausen Acked-by: Mike Frysinger Signed-off-by: Mark Brown Cc: stable@kernel.org --- Reading git-diff-tree failed