[PATCH v2] Fix CVE-2022-30767 (old CVE-2019-14196)

2022-05-18 Thread Andrea zi0Black Cappa
th is changed to unsigned type integer, preventing negative numbers from being used during comparison with positive values during size sanity checks. Signed-off-by: Andrea zi0Black Cappa --- Changes for v2: - added commit comment - fixed a typo net/nfs.c | 6 ++ 1 file chang

[PATCH] Fix CVE-2022-30767 (old CVE-2019-14196)

2022-05-16 Thread Andrea zi0Black Cappa
Signed-off-by: Andrea zi0Black Cappa --- net/nfs.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/net/nfs.c b/net/nfs.c index 3c01cebd96..9152ab742e 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -52,7 +52,7 @@ static const ulong nfs_timeout = CONFIG_NFS_TIMEOUT; static char