diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2018-03-19 14:07:45 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-28 18:40:15 +0200 |
commit | badf74b65fc27112f5fee871c7ade9199c74b2e1 (patch) | |
tree | 41bd2cf66bb33c8817ea2f4f9a8942f0a4a16363 /fs/sysv/inode.c | |
parent | 97acf77bc1743233920239ac9658fe6d525f9d00 (diff) |
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 <Silvio Cesare <silvio.cesare@gmail.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/sysv/inode.c')
0 files changed, 0 insertions, 0 deletions