Chuck Lever 084f797dbc NFSD: Prevent a potential integer overflow
commit 7f33b92e5b18e904a481e6e208486da43e4dc841 upstream.

If the tag length is >= U32_MAX - 3 then the "length + 4" addition
can result in an integer overflow. Address this by splitting the
decoding into several steps so that decode_cb_compound4res() does
not have to perform arithmetic on the unsafe length value.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: stable@vger.kernel.org
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-12-05 13:54:26 +01:00
..
2024-07-18 09:50:08 +02:00
2024-11-17 15:09:53 +01:00
2024-07-15 11:14:59 -07:00
2024-05-13 14:14:05 -07:00
2024-12-05 13:54:08 +01:00
2024-10-22 15:51:20 +02:00
2024-12-05 13:53:45 +01:00
2024-07-15 11:14:59 -07:00
2024-07-27 15:11:59 -07:00
2024-07-15 11:14:59 -07:00
2024-07-23 14:32:21 -07:00
2024-07-15 11:14:59 -07:00
2024-07-18 14:48:11 -07:00
2024-05-28 11:52:53 +02:00
2024-05-28 11:52:49 +02:00
2024-08-21 22:32:58 +02:00
2024-04-23 13:27:43 +02:00
2024-05-28 11:52:45 +02:00
2024-07-15 11:31:32 -07:00
2024-08-29 06:20:44 +12:00
2024-10-10 12:03:15 +02:00
2024-07-15 12:34:01 -07:00
2024-09-06 11:08:58 -07:00
2024-03-11 10:21:06 -07:00
2024-07-15 11:54:04 -07:00
2024-07-18 09:50:08 +02:00
2024-10-10 12:04:07 +02:00
2024-03-12 20:03:34 -07:00
2024-05-02 16:28:20 +02:00
2024-05-24 13:34:07 +02:00
2024-07-15 14:20:22 -07:00
2024-04-10 16:23:02 -06:00