aboutsummaryrefslogtreecommitdiff
path: root/lib/test_dynamic_debug.c
diff options
context:
space:
mode:
authorXin Long <[email protected]>2023-03-07 16:31:28 -0500
committerFlorian Westphal <[email protected]>2023-03-08 14:25:39 +0100
commita7f1a2f43e683c8ffca691d45f2cb32c052158fa (patch)
treef570b8a9651b8b56a17c8e1ad2cf0a15f703efb7 /lib/test_dynamic_debug.c
parent9ccff83b1322f95da7a74784cf6f47a481e03dc5 (diff)
netfilter: bridge: check len before accessing more nh data
In the while loop of br_nf_check_hbh_len(), similar to ip6_parse_tlv(), before accessing 'nh[off + 1]', it should add a check 'len < 2'; and before parsing IPV6_TLV_JUMBO, it should add a check 'optlen > len', in case of overflows. Signed-off-by: Xin Long <[email protected]> Reviewed-by: Simon Horman <[email protected]> Acked-by: Nikolay Aleksandrov <[email protected]> Reviewed-by: Aaron Conole <[email protected]> Signed-off-by: Florian Westphal <[email protected]>
Diffstat (limited to 'lib/test_dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions