From: Dan Carpenter Date: Mon, 19 Mar 2018 11:07:45 +0000 (+0300) Subject: staging: ncpfs: memory corruption in ncp_read_kernel() X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=38643d20b4d4ac378046e51b15556f0f7dc489ea;p=pandora-kernel.git staging: ncpfs: memory corruption in ncp_read_kernel() commit 4c41aa24baa4ed338241d05494f2c595c885af8f upstream. If the server is malicious then *bytes_read could be larger than the size of the "target" buffer. It would lead to memory corruption when we do the memcpy(). Reported-by: Dr Silvio Cesare of InfoSect Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman [carnil: backport to 4.9: Files renamed from drivers/staging/ncpfs/ncplib_kernel.c to fs/ncpfs/ncplib_kernel.c] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed