Re: [PATCH bpf] bpf: fix out-of-bounds read in __bpf_skc_lookup

2019-05-21 Thread Daniel Borkmann
On 05/21/2019 09:52 AM, Lorenz Bauer wrote: > __bpf_skc_lookup takes a socket tuple and the length of the > tuple as an argument. Based on the length, it decides which > address family to pass to the helper function sk_lookup. > > In case of AF_INET6, it fails to verify that the length > of the tu

[PATCH bpf] bpf: fix out-of-bounds read in __bpf_skc_lookup

2019-05-21 Thread Lorenz Bauer
__bpf_skc_lookup takes a socket tuple and the length of the tuple as an argument. Based on the length, it decides which address family to pass to the helper function sk_lookup. In case of AF_INET6, it fails to verify that the length of the tuple is long enough. sk_lookup may therefore access data