net: nfs: Fix possible buffer overflow
nfs_readlink_reply() interprets a 32bit value directly received from the
network as length argument to memcpy() without any boundary checking.
Clamp the copy size at the end of the incoming packet.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 3dc4502 commit 84986ca024462058574432b5483f4bf9136c538d
@Sascha Hauer Sascha Hauer authored on 2 Sep 2019
Showing 1 changed file
View
net/nfs.c