diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-07-23 17:49:57 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-31 19:47:15 +0300 |
| commit | 2dadee3de93fa8ff5011d6fdbf9138784a51af23 (patch) | |
| tree | 01ec456f8a256512955f5cfc497052713dea87ee /tools/perf/scripts/python | |
| parent | 64ad87bfab4aab750b66c31c482488f825aeaff5 (diff) | |
| download | linux-2dadee3de93fa8ff5011d6fdbf9138784a51af23.tar.xz | |
AX.25: Prevent integer overflows in connect and sendmsg
[ Upstream commit 17ad73e941b71f3bec7523ea4e9cbc3752461c2d ]
We recently added some bounds checking in ax25_connect() and
ax25_sendmsg() and we so we removed the AX25_MAX_DIGIS checks because
they were no longer required.
Unfortunately, I believe they are required to prevent integer overflows
so I have added them back.
Fixes: 8885bb0621f0 ("AX.25: Prevent out-of-bounds read in ax25_sendmsg()")
Fixes: 2f2a7ffad5c6 ("AX.25: Fix out-of-bounds read in ax25_connect()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
