From: David M. <da...@da...> - 2019-06-24 17:04:39
|
From: Xin Long <luc...@gm...> Date: Tue, 25 Jun 2019 00:28:19 +0800 > This patch is to fix an uninit-value issue, reported by syzbot: ... > TLV_GET_DATA_LEN() may return a negtive int value, which will be > used as size_t (becoming a big unsigned long) passed into memchr, > cause this issue. > > Similar to what it does in tipc_nl_compat_bearer_enable(), this > fix is to return -EINVAL when TLV_GET_DATA_LEN() is negtive in > tipc_nl_compat_bearer_disable(), as well as in > tipc_nl_compat_link_stat_dump() and tipc_nl_compat_link_reset_stats(). > > v1->v2: > - add the missing Fixes tags per Eric's request. > > Fixes: 0762216c0ad2 ("tipc: fix uninit-value in tipc_nl_compat_bearer_enable") > Fixes: 8b66fee7f8ee ("tipc: fix uninit-value in tipc_nl_compat_link_reset_stats") > Reported-by: syz...@sy... > Signed-off-by: Xin Long <luc...@gm...> Applied and queued up for -stable, thanks. |