diff options
author | 2023-03-07 16:31:28 -0500 | |
---|---|---|
committer | 2023-03-08 14:25:39 +0100 | |
commit | a7f1a2f43e683c8ffca691d45f2cb32c052158fa (patch) | |
tree | f570b8a9651b8b56a17c8e1ad2cf0a15f703efb7 /scripts/generate_rust_analyzer.py | |
parent | netfilter: bridge: call pskb_may_pull in br_nf_check_hbh_len (diff) | |
download | linux-rng-a7f1a2f43e683c8ffca691d45f2cb32c052158fa.tar.xz linux-rng-a7f1a2f43e683c8ffca691d45f2cb32c052158fa.zip |
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 <lucien.xin@gmail.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Acked-by: Nikolay Aleksandrov <razor@blackwall.org>
Reviewed-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions