aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorGuangguan Wang <guangguan.wang@linux.alibaba.com>2024-12-11 17:21:19 +0800
committerDavid S. Miller <davem@davemloft.net>2024-12-15 12:34:59 +0000
commit7863c9f3d24ba49dbead7e03dfbe40deb5888fdf (patch)
tree0fe20df09d2b7fcaa6aca7b01731fb8f23261c50 /scripts/generate_rust_analyzer.py
parentnet/smc: check iparea_offset and ipv6_prefixes_cnt when receiving proposal msg (diff)
downloadwireguard-linux-7863c9f3d24ba49dbead7e03dfbe40deb5888fdf.tar.xz
wireguard-linux-7863c9f3d24ba49dbead7e03dfbe40deb5888fdf.zip
net/smc: check v2_ext_offset/eid_cnt/ism_gid_cnt when receiving proposal msg
When receiving proposal msg in server, the fields v2_ext_offset/ eid_cnt/ism_gid_cnt in proposal msg are from the remote client and can not be fully trusted. Especially the field v2_ext_offset, once exceed the max value, there has the chance to access wrong address, and crash may happen. This patch checks the fields v2_ext_offset/eid_cnt/ism_gid_cnt before using them. Fixes: 8c3dca341aea ("net/smc: build and send V2 CLC proposal") Signed-off-by: Guangguan Wang <guangguan.wang@linux.alibaba.com> Reviewed-by: Wen Gu <guwen@linux.alibaba.com> Reviewed-by: D. Wythe <alibuda@linux.alibaba.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions