aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorEric Dumazet <[email protected]>2024-04-09 12:07:41 +0000
committerJakub Kicinski <[email protected]>2024-04-10 19:42:56 -0700
commit65acf6e0501ac8880a4f73980d01b5d27648b956 (patch)
tree025f335247a2f542a64459c92bea52025ecfb496 /scripts/generate_rust_analyzer.py
parent97e176fcbbf3c0f2bd410c9b241177c051f57176 (diff)
netfilter: complete validation of user input
In my recent commit, I missed that do_replace() handlers use copy_from_sockptr() (which I fixed), followed by unsafe copy_from_sockptr_offset() calls. In all functions, we can perform the @optlen validation before even calling xt_alloc_table_info() with the following check: if ((u64)optlen < (u64)tmp.size + sizeof(tmp)) return -EINVAL; Fixes: 0c83842df40f ("netfilter: validate user input for expected length") Reported-by: syzbot <[email protected]> Signed-off-by: Eric Dumazet <[email protected]> Reviewed-by: Pablo Neira Ayuso <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions