CVE: nfs: fix stack-based buffer overflow in some nfs_handler reply helper functions
authorliucheng (G) <liucheng32@huawei.com>
Thu, 29 Aug 2019 13:47:40 +0000 (13:47 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Wed, 4 Sep 2019 16:37:19 +0000 (11:37 -0500)
commit741a8a08ebe5bc3ccfe3cde6c2b44ee53891af21
tree6a96ab7b87f7bcc3414c624bd8ced071d60e2fcc
parentfe7288069d2e6659117049f7d27e261b550bb725
CVE: nfs: fix stack-based buffer overflow in some nfs_handler reply helper functions

This patch adds a check to nfs_handler to fix buffer overflow for CVE-2019-14197,
CVE-2019-14200, CVE-2019-14201, CVE-2019-14202, CVE-2019-14203 and CVE-2019-14204.

Signed-off-by: Cheng Liu <liucheng32@huawei.com>
Reported-by: Fermín Serna <fermin@semmle.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/nfs.c