aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/tcp_ipv6.c
diff options
context:
space:
mode:
authorMichal Kubecek <[email protected]>2020-12-08 22:13:51 +0000
committerJakub Kicinski <[email protected]>2020-12-09 23:50:38 +0000
commita770bf515613c6e12ae904c3593e26016de99448 (patch)
tree070e9e0651e009cf87054dbdad0e7796b35fbb7c /net/ipv6/tcp_ipv6.c
parente1000e: fix S0ix flow to allow S0i3.2 subset entry (diff)
downloadkernel-a770bf515613c6e12ae904c3593e26016de99448.tar.gz
kernel-a770bf515613c6e12ae904c3593e26016de99448.zip
ethtool: fix stack overflow in ethnl_parse_bitset()
Syzbot reported a stack overflow in bitmap_from_arr32() called from ethnl_parse_bitset() when bitset from netlink message is longer than target bitmap length. While ethnl_compact_sanity_checks() makes sure that trailing part is all zeros (i.e. the request does not try to touch bits kernel does not recognize), we also need to cap change_bits to nbits so that we don't try to write past the prepared bitmaps. Fixes: 88db6d1e4f62 ("ethtool: add ethnl_parse_bitset() helper") Reported-by: [email protected] Signed-off-by: Michal Kubecek <[email protected]> Link: https://lore.kernel.org/r/3487ee3a98e14cd526f55b6caaa959d2dcbcad9f.1607465316.git.mkubecek@suse.cz Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/ipv6/tcp_ipv6.c')
0 files changed, 0 insertions, 0 deletions